mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-05-12 04:50:35 +00:00
Print more useful error message for unexpected cbuffer types
This commit is contained in:
@@ -137,7 +137,9 @@ void D3D11DebugManager::FillCBufferVariables(const string &prefix, size_t &offse
|
||||
elemByteSize = 8;
|
||||
type = eVar_Double;
|
||||
break;
|
||||
default: RDCERR("Unexpected type in constant buffer");
|
||||
default:
|
||||
RDCERR("Unexpected type %d for variable '%s' in cbuffer", invars[v].type.descriptor.type,
|
||||
invars[v].name.c_str());
|
||||
}
|
||||
|
||||
bool columnMajor = invars[v].type.descriptor.varClass == CLASS_MATRIX_COLUMNS;
|
||||
|
||||
Reference in New Issue
Block a user