mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-07-18 21:47:13 +00:00
Add message about non-32bit UAV loads
This commit is contained in:
@@ -2189,6 +2189,13 @@ State State::GetNext(GlobalState &global, State quad[4]) const
|
||||
uint32_t rowPitch = srv ? 0 : global.uavs[resIndex].rowPitch;
|
||||
uint32_t depthPitch = srv ? 0 : global.uavs[resIndex].depthPitch;
|
||||
|
||||
if(load && !srv && (fmt.numComps != 1 || fmt.byteWidth != 4))
|
||||
{
|
||||
device->AddDebugMessage(eDbgCategory_Shaders, eDbgSeverity_Medium,
|
||||
StringFormat::Fmt("Shader debugging %d: %s\n" \
|
||||
"UAV loads aren't supported from anything but 32-bit single channel resources", s.nextInstruction-1, op.str));
|
||||
}
|
||||
|
||||
if(gsm)
|
||||
{
|
||||
offset = 0;
|
||||
|
||||
Reference in New Issue
Block a user