Kanzi 4.1.0
kanzi::gfx::reflection Namespace Reference

Classes

struct  AccelerationStructure
 Acceleration structure reflection information. More...
 
struct  Attribute
 Reflection entry for a stage input or output attribute. More...
 
struct  BindingBlock
 Describes a binding block which corresponds to a resource set. More...
 
struct  Buffer
 Buffer reflection information. More...
 
struct  Image
 Image reflection information. More...
 
struct  InterfaceBlock
 Describes an interface block that can be a uniform buffer object or push constant object. More...
 
struct  InterfaceBlockHasher
 Hasher for InterfaceBlock, combines the name, byte offset, and type information of each member to produce a hash that reflects the full layout of the block. More...
 
struct  Member
 Describes a uniform member. More...
 
struct  ReflectionInfo
 Top-level structure that contains the reflection information for a shader stage or program. More...
 
struct  Sampler
 Sampler reflection information. More...
 
struct  TypeInfo
 Contains a description of a shader value. More...
 
class  UniformBlockBuilder
 A helper class to build uniform blocks based on reflection information. More...
 

Enumerations

enum class  AccessStage : uint8_t { AccessStage::VertexStage , AccessStage::FragmentStage , AccessStage::ComputeStage , AccessStage::All }
 Specifies the stages that use the resource. More...
 
enum class  PrimitiveType : uint8_t {
  PrimitiveType::Invalid , PrimitiveType::Boolean , PrimitiveType::Integer , PrimitiveType::UnsignedInteger ,
  PrimitiveType::FloatingPoint
}
 Specifies the primitive types. More...
 

Functions

bool isReservedGPUSceneDescriptorSetIndex (uint32_t index)
 Checks if given descriptor set is reserved by reserved gpu scene.
 
bool isReservedGPUSceneUniform (uint32_t setIndex, uint32_t bindingIndex)
 Checks if given descriptor set and binding index is reserved by reserved gpu scene uniform.
 
ReflectionInfo mergeReflectionInfos (span< ReflectionInfo > infos)
 Merges reflection information into a unified structure.
 
constexpr bool operator!= (const TypeInfo &lhs, const TypeInfo &rhs)
 Not equality operator for the TypeInfo.
 
constexpr bool operator== (const TypeInfo &lhs, const TypeInfo &rhs)
 Equality operator for the TypeInfo.
 
gfx::Format to_format (const TypeInfo &info)
 Converts a TypeInfo structure into a graphics format.
 

Variables

static string GPUSceneMaterialInfoName
 Specifies the reserved gpu scene material info uniform name.
 
static string GPUSceneName
 Specifies the reserved gpu scene uniform name.
 
static string GPUSceneTexturesNamePrefix
 Specifies the reserved gpu scene textures name prefix.
 
static uint32_t ReservedGPUSceneBindlessTextures2DBindingIndex
 Specifies the reserved gpu scene bindless textures binding index.
 
static uint32_t ReservedGPUSceneDescriptorSetIndex
 Specifies the reserved gpu scene descriptor set index.
 
static uint32_t ReservedGPUSceneUniformBindingIndex
 Specifies the reserved gpu scene uniform binding index.