mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-05-29 21:30:53 +00:00
Indexable temp registers always start at component 0
This commit is contained in:
@@ -1069,7 +1069,7 @@ SPDBChunk::SPDBChunk(void *chunk)
|
||||
char regcomps[] = "xyzw";
|
||||
|
||||
uint32_t regindex = indexable ? regoffset : regoffset / 16;
|
||||
uint32_t regfirstcomp = (regoffset % 16) / 4;
|
||||
uint32_t regfirstcomp = indexable ? 0 : (regoffset % 16) / 4;
|
||||
uint32_t regnumcomps = indexable ? 4 : defrange->sizeInParent / 4;
|
||||
|
||||
char *regswizzle = regcomps;
|
||||
|
||||
Reference in New Issue
Block a user