Add message about non-32bit UAV loads

This commit is contained in:
baldurk
2015-01-11 00:50:55 +00:00
parent 43f55a7cdc
commit fb4e6e0a8a
@@ -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;