ngfx::VKGraphicsContext
Inherits from ngfx::GraphicsContext
Public Classes
Name | |
---|---|
struct | VKRenderPassData |
Public Functions
Name | |
---|---|
void | create(const char * appName, bool enableDepthStencil, bool debug) |
virtual | ~VKGraphicsContext() |
virtual void | setSurface(Surface * surface) override |
virtual CommandBuffer * | drawCommandBuffer(int32_t index =-1) override |
virtual CommandBuffer * | copyCommandBuffer() override |
virtual CommandBuffer * | computeCommandBuffer() override |
void | createBindings() |
virtual RenderPass * | getRenderPass(RenderPassConfig config) override |
Public Attributes
Additional inherited members
Public Classes inherited from ngfx::GraphicsContext
Name | |
---|---|
struct | AttachmentDescription |
struct | RenderPassConfig |
Public Functions inherited from ngfx::GraphicsContext
Name | |
---|---|
virtual | ~GraphicsContext() |
virtual void | beginRenderPass(CommandBuffer * commandBuffer, Graphics * graphics) |
virtual void | beginOffscreenRenderPass(CommandBuffer * commandBuffer, Graphics * graphics, Framebuffer * outputFramebuffer) |
virtual void | endRenderPass(CommandBuffer * commandBuffer, Graphics * graphics) |
virtual void | endOffscreenRenderPass(CommandBuffer * commandBuffer, Graphics * graphics) |
virtual void | submit(CommandBuffer * commandBuffer) |
Public Attributes inherited from ngfx::GraphicsContext
Name | |
---|---|
Device * | device |
uint32_t | numDrawCommandBuffers |
std::vector< Framebuffer * > | swapchainFramebuffers |
Queue * | queue |
RenderPass * | defaultRenderPass |
RenderPass * | defaultOffscreenRenderPass |
Swapchain * | swapchain |
Surface * | surface |
uint32_t | currentImageIndex |
std::vector< Fence * > | frameFences |
Fence * | computeFence |
Semaphore * | presentCompleteSemaphore |
Semaphore * | renderCompleteSemaphore |
PipelineCache * | pipelineCache |
PixelFormat | surfaceFormat |
PixelFormat | defaultOffscreenSurfaceFormat |
PixelFormat | depthFormat |
glm::vec4 | clearColor |
Protected Attributes inherited from ngfx::GraphicsContext
Name | |
---|---|
bool | debug |
bool | enableDepthStencil |
Public Functions Documentation
function create
void create(
const char * appName,
bool enableDepthStencil,
bool debug
)
function ~VKGraphicsContext
virtual ~VKGraphicsContext()
function setSurface
virtual void setSurface(
Surface * surface
) override
Reimplements: ngfx::GraphicsContext::setSurface
function drawCommandBuffer
virtual CommandBuffer * drawCommandBuffer(
int32_t index =-1
) override
Reimplements: ngfx::GraphicsContext::drawCommandBuffer
function copyCommandBuffer
virtual CommandBuffer * copyCommandBuffer() override
Reimplements: ngfx::GraphicsContext::copyCommandBuffer
function computeCommandBuffer
virtual CommandBuffer * computeCommandBuffer() override
Reimplements: ngfx::GraphicsContext::computeCommandBuffer
function createBindings
void createBindings()
function getRenderPass
virtual RenderPass * getRenderPass(
RenderPassConfig config
) override
Reimplements: ngfx::GraphicsContext::getRenderPass
Public Attributes Documentation
variable vkInstance
VKInstance vkInstance;
variable vkPhysicalDevice
VKPhysicalDevice vkPhysicalDevice;
variable vkDevice
VKDevice vkDevice;
variable vkCommandPool
VKCommandPool vkCommandPool;
variable vkQueue
VKQueue vkQueue;
variable vkSwapchain
std::unique_ptr< VKSwapchain > vkSwapchain;
variable vkDrawCommandBuffers
std::vector< VKCommandBuffer > vkDrawCommandBuffers;
variable vkCopyCommandBuffer
VKCommandBuffer vkCopyCommandBuffer;
variable vkComputeCommandBuffer
VKCommandBuffer vkComputeCommandBuffer;
variable vkDepthStencilImage
VKImage vkDepthStencilImage;
variable vkMultisampleColorImage
VKImage vkMultisampleColorImage;
variable vkMultisampleDepthImage
VKImage vkMultisampleDepthImage;
variable vkDepthStencilImageView
VKImageView vkDepthStencilImageView;
variable vkMultisampleColorImageView
VKImageView vkMultisampleColorImageView;
variable vkMultisampleDepthImageView
VKImageView vkMultisampleDepthImageView;
variable vkRenderPassCache
std::vector< std::unique_ptr< VKRenderPassData > > vkRenderPassCache;
variable vkDefaultRenderPass
VKRenderPass * vkDefaultRenderPass = nullptr;
variable vkDefaultOffscreenRenderPass
VKRenderPass * vkDefaultOffscreenRenderPass = nullptr;
variable vkPipelineCache
VKPipelineCache vkPipelineCache;
variable vkSwapchainFramebuffers
std::vector< VKFramebuffer > vkSwapchainFramebuffers;
variable vkWaitFences
std::vector< VKFence > vkWaitFences;
variable vkComputeFence
VKFence vkComputeFence;
variable vkPresentCompleteSemaphore
VKSemaphore vkPresentCompleteSemaphore;
variable vkRenderCompleteSemaphore
VKSemaphore vkRenderCompleteSemaphore;
variable vkDescriptorPool
VkDescriptorPool vkDescriptorPool;
variable vkDescriptorSetLayoutCache
VKDescriptorSetLayoutCache vkDescriptorSetLayoutCache;
variable offscreen
bool offscreen = true;
variable numSamples
uint32_t numSamples = 1;
variable descriptorPoolSizes
std::vector< VkDescriptorPoolSize > descriptorPoolSizes;
variable descriptorPoolCreateInfo
VkDescriptorPoolCreateInfo descriptorPoolCreateInfo;
variable msColorImageCreateInfo
VKImageCreateInfo msColorImageCreateInfo;
variable msDepthImageCreateInfo
VKImageCreateInfo msDepthImageCreateInfo;
Updated on 3 April 2021 at 20:21:51 PDT