Diligent Engine API Reference: Diligent::DummyShaderVariable Struct Reference

Diligent Engine API Reference

Public Member Functions | List of all members
Diligent::DummyShaderVariable Struct Reference

Implementation of a dummy shader variable that silently ignores all operations. More...

Inheritance diagram for Diligent::DummyShaderVariable:

## Public Member Functions
virtual void | Set (IDeviceObject *pObject) override final
| Sets the variable to the given value. More...
virtual void | SetArray (IDeviceObject *const *ppObjects, Uint32 FirstElement, Uint32 NumElements) override final
| Sets the variable array. More...

## Detailed Description

Implementation of a dummy shader variable that silently ignores all operations.

## Member Function Documentation

## ◆ Set()

virtual void Diligent::DummyShaderVariable::Set | ( | IDeviceObject * | pObject | ) |
| inlinefinaloverridevirtual

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.

Implements Diligent::IShaderVariable.

## ◆ SetArray()

virtual void Diligent::DummyShaderVariable::SetArray | ( | IDeviceObject *const * | ppObjects,
|  | Uint32 | FirstElement,
|  | Uint32 | NumElements
| ) |  |
| inlinefinaloverridevirtual

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.

Implements Diligent::IShaderVariable.