ComputePipelineD3D12 - check result of CreateComputePipelineState()
This was silently failing for me, resuling in a crash somewhere completely different. Change-Id: Iba9dfba8bb4c9e51a947a1337fc9718437ad5254 Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/45766 Commit-Queue: Ben Clayton <bclayton@google.com> Reviewed-by: Corentin Wallez <cwallez@chromium.org>
This commit is contained in:
parent
af55c04e36
commit
1452cf60e5
|
@ -15,6 +15,7 @@
|
|||
#include "dawn_native/d3d12/ComputePipelineD3D12.h"
|
||||
|
||||
#include "common/Assert.h"
|
||||
#include "dawn_native/d3d12/D3D12Error.h"
|
||||
#include "dawn_native/d3d12/DeviceD3D12.h"
|
||||
#include "dawn_native/d3d12/PipelineLayoutD3D12.h"
|
||||
#include "dawn_native/d3d12/PlatformFunctions.h"
|
||||
|
@ -51,8 +52,10 @@ namespace dawn_native { namespace d3d12 {
|
|||
SingleShaderStage::Compute,
|
||||
ToBackend(GetLayout()), compileFlags));
|
||||
d3dDesc.CS = compiledShader.GetD3D12ShaderBytecode();
|
||||
device->GetD3D12Device()->CreateComputePipelineState(&d3dDesc,
|
||||
IID_PPV_ARGS(&mPipelineState));
|
||||
auto* d3d12Device = device->GetD3D12Device();
|
||||
DAWN_TRY(CheckHRESULT(
|
||||
d3d12Device->CreateComputePipelineState(&d3dDesc, IID_PPV_ARGS(&mPipelineState)),
|
||||
"D3D12 creating pipeline state"));
|
||||
return {};
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue