mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-07-31 03:41:01 +00:00
Ensure shader reflection information is stored as const
* Avoids accidental modifications
This commit is contained in:
@@ -216,7 +216,7 @@ struct InputAssembly
|
||||
|
||||
:type: ShaderReflection
|
||||
)");
|
||||
ShaderReflection *bytecode = NULL;
|
||||
const ShaderReflection *bytecode = NULL;
|
||||
|
||||
DOCUMENT(R"(The bound vertex buffers
|
||||
|
||||
@@ -255,7 +255,7 @@ struct Shader
|
||||
|
||||
:type: ShaderReflection
|
||||
)");
|
||||
ShaderReflection *reflection = NULL;
|
||||
const ShaderReflection *reflection = NULL;
|
||||
|
||||
DOCUMENT(R"(A :class:`ShaderStage` identifying which stage this shader is bound to.
|
||||
|
||||
|
||||
@@ -261,7 +261,7 @@ struct Shader
|
||||
|
||||
:type: ShaderReflection
|
||||
)");
|
||||
ShaderReflection *reflection = NULL;
|
||||
const ShaderReflection *reflection = NULL;
|
||||
|
||||
DOCUMENT(R"(A :class:`ShaderStage` identifying which stage this shader is bound to.
|
||||
|
||||
|
||||
@@ -262,7 +262,7 @@ struct Shader
|
||||
|
||||
:type: ShaderReflection
|
||||
)");
|
||||
ShaderReflection *reflection = NULL;
|
||||
const ShaderReflection *reflection = NULL;
|
||||
|
||||
DOCUMENT(R"(A :class:`ShaderStage` identifying which stage this shader is bound to.
|
||||
|
||||
|
||||
@@ -711,7 +711,7 @@ rdcarray<VertexInputAttribute> PipeState::GetVertexInputs() const
|
||||
|
||||
if(m_D3D11->inputAssembly.bytecode != NULL)
|
||||
{
|
||||
rdcarray<SigParameter> &sig = m_D3D11->inputAssembly.bytecode->inputSignature;
|
||||
const rdcarray<SigParameter> &sig = m_D3D11->inputAssembly.bytecode->inputSignature;
|
||||
for(int ia = 0; ia < sig.count(); ia++)
|
||||
{
|
||||
if(striequal(semName, sig[ia].semanticName) &&
|
||||
@@ -769,7 +769,7 @@ rdcarray<VertexInputAttribute> PipeState::GetVertexInputs() const
|
||||
|
||||
if(m_D3D12->vertexShader.reflection != NULL)
|
||||
{
|
||||
rdcarray<SigParameter> &sig = m_D3D12->vertexShader.reflection->inputSignature;
|
||||
const rdcarray<SigParameter> &sig = m_D3D12->vertexShader.reflection->inputSignature;
|
||||
for(int ia = 0; ia < sig.count(); ia++)
|
||||
{
|
||||
if(striequal(semName, sig[ia].semanticName) &&
|
||||
|
||||
@@ -502,7 +502,7 @@ struct Shader
|
||||
|
||||
:type: ShaderReflection
|
||||
)");
|
||||
ShaderReflection *reflection = NULL;
|
||||
const ShaderReflection *reflection = NULL;
|
||||
|
||||
DOCUMENT(R"(A :class:`ShaderStage` identifying which stage this shader is bound to.
|
||||
|
||||
|
||||
Reference in New Issue
Block a user