diff --git a/src/dawn_native/d3d12/ShaderModuleD3D12.cpp b/src/dawn_native/d3d12/ShaderModuleD3D12.cpp index 614cd7126e..2c1236b74f 100644 --- a/src/dawn_native/d3d12/ShaderModuleD3D12.cpp +++ b/src/dawn_native/d3d12/ShaderModuleD3D12.cpp @@ -128,7 +128,7 @@ namespace dawn_native { namespace d3d12 { std::string message = std::string("DXC compile failed with ") + static_cast(errors->GetBufferPointer()); - return DAWN_INTERNAL_ERROR(message); + return DAWN_VALIDATION_ERROR(message); } ComPtr compiledShader; @@ -163,7 +163,7 @@ namespace dawn_native { namespace d3d12 { &compiledShader, &errors))) { std::string message = std::string("D3D compile failed with ") + static_cast(errors->GetBufferPointer()); - return DAWN_INTERNAL_ERROR(message); + return DAWN_VALIDATION_ERROR(message); } return std::move(compiledShader);