Loading...
Searching...
No Matches
GlfTexture::Binding Class Reference

A texture has one or more bindings which describe how the different aspects of the texture should be bound in order to allow shader access. More...

#include <texture.h>

Public Member Functions

 Binding (TfToken name, TfToken role, GLenum target, GLuint textureId, GLuint samplerId)
 

Public Attributes

TfToken name
 
TfToken role
 
GLenum target
 
GLuint textureId
 
GLuint samplerId
 

Detailed Description

A texture has one or more bindings which describe how the different aspects of the texture should be bound in order to allow shader access.

Most textures will have a single binding for the role "texels", but some textures might need multiple bindings, e.g. a ptexTexture will have an additional binding for the role "layout".

Definition at line 73 of file texture.h.

Constructor & Destructor Documentation

◆ Binding()

Binding ( TfToken  name,
TfToken  role,
GLenum  target,
GLuint  textureId,
GLuint  samplerId 
)
inline

Definition at line 74 of file texture.h.

Member Data Documentation

◆ name

TfToken name

Definition at line 82 of file texture.h.

◆ role

TfToken role

Definition at line 83 of file texture.h.

◆ samplerId

GLuint samplerId

Definition at line 86 of file texture.h.

◆ target

GLenum target

Definition at line 84 of file texture.h.

◆ textureId

GLuint textureId

Definition at line 85 of file texture.h.


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