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::CreateFromXml

Syntax

void ShaderConstantBuffer::CreateFromXml(TiXmlElement *e);

Loads this shader constant buffer from the given XML file.

Work in progress:

Todo: in void ShaderConstantBuffer::CreateFromXml(TiXmlElement *e):
To optimize and avoid an extra dereference, make this index store the actual gpu constant index/shader program index, and not an intermediate index to the constant buffer slot.

Leave a Comment

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