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::IObject Diligent::ShaderVariableBase Diligent::DummyShaderVariable

Public Member Functions

virtual void Set (IDeviceObject *pObject)=0
 Sets the variable to the given value. More...
 
- Public Member Functions inherited from Diligent::IObject
virtual void QueryInterface (const Diligent::INTERFACE_ID &IID, IObject **ppInterface)=0
 Queries the specific interface. More...
 
virtual Atomics::Long AddRef ()=0
 Increments the number of strong references by 1. More...
 
virtual Atomics::Long Release ()=0
 Decrements the number of strong references by 1 and destroys the object when the counter reaches zero. More...
 
virtual IReferenceCountersGetReferenceCounters () const =0
 Returns the pointer to IReferenceCounters interface of the associated reference counters object. The metod does NOT increment the number of strong references to the returned object.
 

Detailed Description

Shader resource variable.

Member Function Documentation

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.