mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-08-26 16:36:31 +00:00
Spirv debug set rows = 0, columns = 0 for helper Struct ShaderVariable's
This commit is contained in:
@@ -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> ¶
|
||||
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";
|
||||
|
||||
Reference in New Issue
Block a user