NvSampleAppVK Class Reference

Base class for VK sample apps. More...

#include <NvSampleAppVK.h>

Inheritance diagram for NvSampleAppVK:

NvSampleApp NvAppBase NvInputCallbacks

List of all members.

Public Member Functions

 NvSampleAppVK ()
 Constructor Do NOT make rendering API calls in the constructor The rendering context is not bound until the entry into initRendering.
virtual ~NvSampleAppVK ()
 Destructor.
NvAppContextVKvk ()
 Return the VK helper context.
bool setGLDrawCallbacks (NvGLDrawCallbacks *cb)
 Sets GL-in-VK-app callbacks (if supported).
bool isGLSupported ()
 Returns whether the HW supports GL in a VK app.
VkDevice device ()
 Direct device access.
VkQueue queue ()
 Direct queue access.
bool isExtensionSupported (const char *ext)
 Extension support query.
bool isLayerSupported (const char *ext)
 Layer support query.


Detailed Description

Base class for VK sample apps.

Constructor & Destructor Documentation

NvSampleAppVK::NvSampleAppVK (  ) 

Constructor Do NOT make rendering API calls in the constructor The rendering context is not bound until the entry into initRendering.

Parameters:
[in] platform the platform context representing the system, normally passed in from the NvAppFactory
[in] appTitle the null-terminated string title of the application


Member Function Documentation

VkDevice NvSampleAppVK::device (  )  [inline]

Direct device access.

Returns:
the VkDevice

bool NvSampleAppVK::isExtensionSupported ( const char *  ext  )  [inline]

Extension support query.

Returns:
true if the given string is found in the device and instance extension set for the context, false if not.

bool NvSampleAppVK::isGLSupported (  )  [inline]

Returns whether the HW supports GL in a VK app.

Not valid until initRendering

Returns:
true if GL callbacks are supported, false if VK-only

bool NvSampleAppVK::isLayerSupported ( const char *  ext  )  [inline]

Layer support query.

Returns:
true if the given string is found in the device and instance layer set for the context, false if not.

VkQueue NvSampleAppVK::queue (  )  [inline]

Direct queue access.

Returns:
the main rendering VkQueue

bool NvSampleAppVK::setGLDrawCallbacks ( NvGLDrawCallbacks cb  ) 

Sets GL-in-VK-app callbacks (if supported).

Must be called in the constructor, may still not be supported if true is returned

Parameters:
[in] cb the callback object
Returns:
true if supported false if not

NvAppContextVK& NvSampleAppVK::vk (  )  [inline]

Return the VK helper context.

Returns:
the NvAppContextVK object


The documentation for this class was generated from the following file: