API Documentation
Public Member Functions | Public Attributes | List of all members
nkGraphics::ShaderBoundResourceDesc< T > Class Template Reference

Holds information about a resource linked in a shader for feeding. More...

Public Member Functions

 ShaderBoundResourceDesc () noexcept=default
 
 ShaderBoundResourceDesc (unsigned int slot, unsigned int space, T *resource) noexcept
 

Public Attributes

unsigned int _slot
 The register slot fed with the resource.
 
unsigned int _space
 The register space fed with the resource.
 
T * _resource
 The resource to feed with.
 

Detailed Description

template<typename T>
class nkGraphics::ShaderBoundResourceDesc< T >

Holds information about a resource linked in a shader for feeding.

Constructor & Destructor Documentation

◆ ShaderBoundResourceDesc() [1/2]

template<typename T >
nkGraphics::ShaderBoundResourceDesc< T >::ShaderBoundResourceDesc ( )
defaultnoexcept

Default constructor.

◆ ShaderBoundResourceDesc() [2/2]

template<typename T >
nkGraphics::ShaderBoundResourceDesc< T >::ShaderBoundResourceDesc ( unsigned int  slot,
unsigned int  space,
T *  resource 
)
noexcept

Filling constructor.

Parameters
slotThe register slot used.
spaceThe register space used.
resourceThe resource fed.

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