Represents a constant buffer.
More...
#include <ConstantBuffer.h>
|
void | ApplyChanges (ID3D11DeviceContext1 *ctx) |
| Applies the changes made to the constant buffer.
|
|
void | SetVS (ID3D11DeviceContext1 *ctx, U32 slot) |
| Sets the constant buffer for the vertex shader.
|
|
void | SetPS (ID3D11DeviceContext1 *ctx, U32 slot) |
| Sets the constant buffer for the pixel shader.
|
|
void | SetCS (ID3D11DeviceContext1 *ctx, U32 slot) |
| Sets the constant buffer for the compute shader.
|
|
void | SetGS (ID3D11DeviceContext1 *ctx, U32 slot) |
| Sets the constant buffer for the geometry shader.
|
|
void | SetHS (ID3D11DeviceContext1 *ctx, U32 slot) |
| Sets the constant buffer for the hull shader.
|
|
void | SetDS (ID3D11DeviceContext1 *ctx, U32 slot) |
| Sets the constant buffer for the domain shader.
|
|
|
static ConstantBuffer< T > | Create (ID3D11Device1 *device, bool gpuWritable=false) |
| Creates a constant buffer.
|
|
|
T | Data |
|
ComPtr< ID3D11Buffer > | Buffer |
|
bool | GPUWritable |
|
template<typename T>
class Nui::Graphics::ConstantBuffer< T >
Represents a constant buffer.
- Template Parameters
-
T | The data type of the constant buffer |
◆ ApplyChanges()
Applies the changes made to the constant buffer.
- Parameters
-
◆ Create()
Creates a constant buffer.
- Parameters
-
device | DX11 device |
gpuWritable | If the constant buffer can be written to by the GPU |
- Returns
- The constant buffer of type T
◆ SetCS()
Sets the constant buffer for the compute shader.
- Parameters
-
ctx | DX11 device context |
slot | Shader slot for the constant buffer |
◆ SetDS()
Sets the constant buffer for the domain shader.
- Parameters
-
ctx | DX11 device context |
slot | Shader slot for the constant buffer |
◆ SetGS()
Sets the constant buffer for the geometry shader.
- Parameters
-
ctx | DX11 device context |
slot | Shader slot for the constant buffer |
◆ SetHS()
Sets the constant buffer for the hull shader.
- Parameters
-
ctx | DX11 device context |
slot | Shader slot for the constant buffer |
◆ SetPS()
Sets the constant buffer for the pixel shader.
- Parameters
-
ctx | DX11 device context |
slot | Shader slot for the constant buffer |
◆ SetVS()
Sets the constant buffer for the vertex shader.
- Parameters
-
ctx | DX11 device context |
slot | Shader slot for the constant buffer |
The documentation for this class was generated from the following file: