Back to class index
ShaderConstantBuffer[Class Summary]
engineConstantIndices
constantData
constantDataSizeBytes
constantDescriptions
boundShaderProgramHandle
ctor (+1 overload)
~dtor
Create(...) (+4 overloads)
CreateFromXml(e)
ApplyValuesFromXml(e)
Deinit()
Apply()[const]
ConstantByName(constantName)
ConstantIndex(constantName)
BindToMaterial(...)
IsParameterIndexPresent(parameterIndex)[const]
IsConstantActive(constantName)[const] (+1 overload)
SetFloat(...) (+2 overloads)
SetFloat2(...) (+2 overloads)
SetFloat3(...) (+2 overloads)
SetFloat4(...) (+2 overloads)
SetFloat4x4(...) (+2 overloads)
SetTexture(...) (+2 overloads)
SetTextureSampler(...) (+2 overloads)

ShaderConstantBuffer::BindToMaterial

Syntax

void ShaderConstantBuffer::BindToMaterial(ShaderType type, const char *constantBufferName, const Material *material);

Parameters

const char *constantBufferName(D3D11 only) The name of the constant buffer to bind to. This function will resolve the buffer index of that constant buffer, and bind this ShaderConstantBuffer object to that index. If this ShaderConstantBuffer only specifies textures, pass in a null pointer in this argument to avoid binding to any constant buffer.

Leave a Comment

Name:
Comments:
Captcha:captcha image Type in the black symbols:
Back to class index