ngfx::ComputeApplication

Public Functions

Name
ComputeApplication(const std::string & name, int w =0, int h =0)
virtual ~ComputeApplication()
virtual void onInit()
virtual void onRecordCommandBuffer(CommandBuffer * commandBuffer)
virtual void onUpdate()
virtual void run()

Protected Functions

Name
virtual void init()
virtual void close()
virtual void doCompute(CommandBuffer * commandBuffer)
virtual void onComputeFinished()
virtual void recordCommandBuffer(CommandBuffer * commandBuffer)

Protected Attributes

Name
std::unique_ptr< Graphics > graphics
std::unique_ptr< Window > window
std::unique_ptr< GraphicsContext > graphicsContext
std::string appName
int w
int h

Public Functions Documentation

function ComputeApplication

ComputeApplication(
    const std::string & name,
    int w =0,
    int h =0
)

function ~ComputeApplication

inline virtual ~ComputeApplication()

function onInit

inline virtual void onInit()

function onRecordCommandBuffer

inline virtual void onRecordCommandBuffer(
    CommandBuffer * commandBuffer
)

function onUpdate

inline virtual void onUpdate()

function run

virtual void run()

Protected Functions Documentation

function init

virtual void init()

function close

virtual void close()

function doCompute

virtual void doCompute(
    CommandBuffer * commandBuffer
)

function onComputeFinished

inline virtual void onComputeFinished()

function recordCommandBuffer

virtual void recordCommandBuffer(
    CommandBuffer * commandBuffer
)

Protected Attributes Documentation

variable graphics

std::unique_ptr< Graphics > graphics;

variable window

std::unique_ptr< Window > window;

variable graphicsContext

std::unique_ptr< GraphicsContext > graphicsContext;

variable appName

std::string appName;

variable w

int w;

variable h

int h;

Updated on 3 April 2021 at 20:21:51 PDT