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

#include <resourceBindings.h>

Public Member Functions

HGI_API HgiTextureBindDesc ()
 

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.

Constructor & Destructor Documentation

HGI_API HgiTextureBindDesc::HgiTextureBindDesc ( )

Member Data Documentation

uint32_t HgiTextureBindDesc::bindingIndex

Definition at line 123 of file resourceBindings.h.

HgiBindResourceType HgiTextureBindDesc::resourceType

Definition at line 122 of file resourceBindings.h.

HgiSamplerHandleVector HgiTextureBindDesc::samplers

Definition at line 121 of file resourceBindings.h.

HgiShaderStage HgiTextureBindDesc::stageUsage

Definition at line 124 of file resourceBindings.h.

HgiTextureHandleVector HgiTextureBindDesc::textures

Definition at line 120 of file resourceBindings.h.


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