HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
HdStBinding Class Reference

#include <binding.h>

Public Types

enum  Type {
  UNKNOWN, DISPATCH, DRAW_INDEX, DRAW_INDEX_INSTANCE,
  DRAW_INDEX_INSTANCE_ARRAY, VERTEX_ATTR, INDEX_ATTR, SSBO,
  BINDLESS_SSBO_RANGE, UBO, BINDLESS_UNIFORM, UNIFORM,
  UNIFORM_ARRAY, FALLBACK, TEXTURE_2D, ARRAY_OF_TEXTURE_2D,
  TEXTURE_FIELD, TEXTURE_UDIM_ARRAY, TEXTURE_UDIM_LAYOUT, TEXTURE_PTEX_TEXEL,
  TEXTURE_PTEX_LAYOUT, BINDLESS_TEXTURE_2D, BINDLESS_ARRAY_OF_TEXTURE_2D, BINDLESS_TEXTURE_FIELD,
  BINDLESS_TEXTURE_UDIM_ARRAY, BINDLESS_TEXTURE_UDIM_LAYOUT, BINDLESS_TEXTURE_PTEX_TEXEL, BINDLESS_TEXTURE_PTEX_LAYOUT,
  PRIMVAR_REDIRECT, FIELD_REDIRECT, TRANSFORM_2D
}
 
enum  Location { NOT_EXIST = 0xffff }
 

Public Member Functions

 HdStBinding ()
 
 HdStBinding (Type type, int location, int textureUnit=0)
 
void Set (Type type, int location, int textureUnit)
 
bool IsValid () const
 
Type GetType () const
 
int GetLocation () const
 
int GetTextureUnit () const
 
int GetValue () const
 
bool operator< (HdStBinding const &b) const
 

Detailed Description

Bindings are used for buffers or textures, it simply associates a binding type with a binding location.

Definition at line 47 of file binding.h.

Member Enumeration Documentation

Enumerator
NOT_EXIST 

Definition at line 93 of file binding.h.

Enumerator
UNKNOWN 
DISPATCH 
DRAW_INDEX 
DRAW_INDEX_INSTANCE 
DRAW_INDEX_INSTANCE_ARRAY 
VERTEX_ATTR 
INDEX_ATTR 
SSBO 
BINDLESS_SSBO_RANGE 
UBO 
BINDLESS_UNIFORM 
UNIFORM 
UNIFORM_ARRAY 
FALLBACK 
TEXTURE_2D 
ARRAY_OF_TEXTURE_2D 
TEXTURE_FIELD 
TEXTURE_UDIM_ARRAY 
TEXTURE_UDIM_LAYOUT 
TEXTURE_PTEX_TEXEL 
TEXTURE_PTEX_LAYOUT 
BINDLESS_TEXTURE_2D 
BINDLESS_ARRAY_OF_TEXTURE_2D 
BINDLESS_TEXTURE_FIELD 
BINDLESS_TEXTURE_UDIM_ARRAY 
BINDLESS_TEXTURE_UDIM_LAYOUT 
BINDLESS_TEXTURE_PTEX_TEXEL 
BINDLESS_TEXTURE_PTEX_LAYOUT 
PRIMVAR_REDIRECT 
FIELD_REDIRECT 
TRANSFORM_2D 

Definition at line 49 of file binding.h.

Constructor & Destructor Documentation

HdStBinding::HdStBinding ( )
inline

Definition at line 98 of file binding.h.

HdStBinding::HdStBinding ( Type  type,
int  location,
int  textureUnit = 0 
)
inline

Definition at line 99 of file binding.h.

Member Function Documentation

int HdStBinding::GetLocation ( ) const
inline

Definition at line 107 of file binding.h.

int HdStBinding::GetTextureUnit ( ) const
inline

Definition at line 108 of file binding.h.

Type HdStBinding::GetType ( ) const
inline

Definition at line 106 of file binding.h.

int HdStBinding::GetValue ( ) const
inline

Definition at line 109 of file binding.h.

bool HdStBinding::IsValid ( ) const
inline

Definition at line 105 of file binding.h.

bool HdStBinding::operator< ( HdStBinding const b) const
inline

Definition at line 110 of file binding.h.

void HdStBinding::Set ( Type  type,
int  location,
int  textureUnit 
)
inline

Definition at line 102 of file binding.h.


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