mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-05-13 05:20:45 +00:00
Allow specifying a NULL bytecode with a non-0 bytecode length
* Apparently D3D12 warns about this but still creates the PSO
This commit is contained in:
@@ -371,9 +371,10 @@ bool WrappedID3D12Device::Serialise_CreateGraphicsPipelineState(
|
||||
|
||||
for(size_t i = 0; i < ARRAY_COUNT(shaders); i++)
|
||||
{
|
||||
if(shaders[i]->BytecodeLength == 0)
|
||||
if(shaders[i]->BytecodeLength == 0 || shaders[i]->pShaderBytecode == NULL)
|
||||
{
|
||||
shaders[i]->pShaderBytecode = NULL;
|
||||
shaders[i]->BytecodeLength = 0;
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user