Diligent Engine API Reference
Public Member Functions | List of all members
Diligent::IShaderVariable Class Referenceabstract

Shader resource variable. More...

Inheritance diagram for Diligent::IShaderVariable:
Diligent::ShaderVariableBase Diligent::DummyShaderVariable

Public Member Functions

virtual void Set (IDeviceObject *pObject)=0
 Sets the variable to the given value. More...
 
virtual void SetArray (IDeviceObject *const *ppObjects, Uint32 FirstElement, Uint32 NumElements)=0
 Sets the variable array. More...
 

Detailed Description

Shader resource variable.

Member Function Documentation

◆ Set()

virtual void Diligent::IShaderVariable::Set ( IDeviceObject pObject)
pure virtual

Sets the variable to the given value.

Remarks
The method performs run-time correctness checks. For instance, shader resource view cannot be assigned to a constant buffer variable.

Implemented in Diligent::DummyShaderVariable.

◆ SetArray()

virtual void Diligent::IShaderVariable::SetArray ( IDeviceObject *const *  ppObjects,
Uint32  FirstElement,
Uint32  NumElements 
)
pure virtual

Sets the variable array.

Parameters
[in]ppObjects- pointer to the array of objects
[in]FirstElement- first array element to set
[in]NumElements- number of objects in ppObjects array
Remarks
The method performs run-time correctness checks. For instance, shader resource view cannot be assigned to a constant buffer variable.

Implemented in Diligent::DummyShaderVariable.