Spirv debug set rows = 0, columns = 0 for helper Struct ShaderVariable's

This commit is contained in:
Jake Turner
2025-05-19 16:40:55 +01:00
parent 890f80b6d8
commit 4a50e28a78
2 changed files with 10 additions and 10 deletions
@@ -2478,8 +2478,8 @@ void ThreadState::StepNext(ShaderDebugState *state, const rdcarray<ThreadState>
}
ShaderVariable result;
result.rows = 1;
result.columns = 1;
result.rows = 0;
result.columns = 0;
result.type = VarType::Struct;
result.members = {lsb, msb};
result.members[0].name = "lsb";
@@ -3499,8 +3499,8 @@ void ThreadState::StepNext(ShaderDebugState *state, const rdcarray<ThreadState>
// we make a little struct out of the combination
ShaderVariable result;
result.rows = 1;
result.columns = 1;
result.rows = 0;
result.columns = 0;
result.type = VarType::Struct;
result.members = {GetSrc(sampled.image), GetSrc(sampled.sampler)};
result.members[0].name = "image";
@@ -4077,8 +4077,8 @@ void ThreadState::StepNext(ShaderDebugState *state, const rdcarray<ThreadState>
OpImageTexelPointer ptr(it);
ShaderVariable result;
result.rows = 1;
result.columns = 1;
result.rows = 0;
result.columns = 0;
result.type = VarType::Struct;
result.members = {ReadPointerValue(ptr.image), GetSrc(ptr.coordinate), GetSrc(ptr.sample)};
result.members[0].name = "image";
@@ -413,8 +413,8 @@ ShaderVariable ModfStruct(ThreadState &state, uint32_t, const rdcarray<Id> &para
ShaderVariable var = state.GetSrc(params[0]);
ShaderVariable ret;
ret.rows = 1;
ret.columns = 1;
ret.rows = 0;
ret.columns = 0;
ret.type = VarType::Struct;
ret.members = {var, var};
ret.members[0].name = "_child0";
@@ -786,8 +786,8 @@ ShaderVariable FrexpStruct(ThreadState &state, uint32_t, const rdcarray<Id> &par
ShaderVariable var = state.GetSrc(params[0]);
ShaderVariable ret;
ret.rows = 1;
ret.columns = 1;
ret.rows = 0;
ret.columns = 0;
ret.type = VarType::Struct;
ret.members = {var, var};
ret.members[0].name = "_child0";