All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
HgiTextureBindDesc Struct Reference

Describes the binding information of a texture (or array of textures). More...

Public Attributes

HgiTextureHandleVector textures
 
HgiSamplerHandleVector samplers
 
HgiBindResourceType resourceType
 
uint32_t bindingIndex
 
HgiShaderStage stageUsage
 

Detailed Description

Describes the binding information of a texture (or array of textures).

  • textures: The texture(s) to be bound. If there are more than one texture, the textures will be put in an array-of-textures (not texture-array). Please note that different platforms have varying limits to max textures in an array.
  • samplers: (optional) The sampler(s) to be bound for each texture in textures. If empty a default sampler (clamp_to_edge, linear) should be used.
  • resourceType: The type of the texture(s) that is to be bound. All textures in the array must have the same type.
  • bindingIndex: Binding location for the texture
  • stageUsage: What shader stage(s) the texture will be used in.

Definition at line 115 of file resourceBindings.h.


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