Foray Library
rapid prototyping framework for crossplatform development of vulkan hardware ray tracing applications
Loading...
Searching...
No Matches
Public Member Functions | Static Public Member Functions | Public Attributes | List of all members
foray::scene::DrawPushConstant Struct Reference

Push Constant helper type. More...

#include <foray_scenedrawing.hpp>

Public Member Functions

void CmdPushConstant_TransformBufferOffset (VkCommandBuffer commandBuffer, VkPipelineLayout pipelineLayout, uint32_t transformBufferOffset)
 
void CmdPushConstant_MaterialIndex (VkCommandBuffer commandBuffer, VkPipelineLayout pipelineLayout, int32_t materialIndex)
 

Static Public Member Functions

static VkShaderStageFlags GetShaderStageFlags ()
 
static VkPushConstantRange GetPushConstantRange ()
 

Public Attributes

uint32_t TransformBufferOffset = 0
 
int32_t MaterialIndex = -1
 

Detailed Description

Push Constant helper type.

Member Function Documentation

◆ CmdPushConstant_MaterialIndex()

void foray::scene::DrawPushConstant::CmdPushConstant_MaterialIndex ( VkCommandBuffer  commandBuffer,
VkPipelineLayout  pipelineLayout,
int32_t  materialIndex 
)
inline

◆ CmdPushConstant_TransformBufferOffset()

void foray::scene::DrawPushConstant::CmdPushConstant_TransformBufferOffset ( VkCommandBuffer  commandBuffer,
VkPipelineLayout  pipelineLayout,
uint32_t  transformBufferOffset 
)
inline

◆ GetPushConstantRange()

VkPushConstantRange foray::scene::DrawPushConstant::GetPushConstantRange ( )
inlinestatic

◆ GetShaderStageFlags()

VkShaderStageFlags foray::scene::DrawPushConstant::GetShaderStageFlags ( )
inlinestatic

Member Data Documentation

◆ MaterialIndex

int32_t foray::scene::DrawPushConstant::MaterialIndex = -1

◆ TransformBufferOffset

uint32_t foray::scene::DrawPushConstant::TransformBufferOffset = 0

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