From cd39ade86f56b5d45224b903e96c2634bf119779 Mon Sep 17 00:00:00 2001 From: Ben Clayton Date: Tue, 20 Apr 2021 14:32:19 +0000 Subject: [PATCH] Re-add const to TranslateToHLSLWithTint() Addresses a late review comment: https://dawn-review.googlesource.com/c/dawn/+/48060/8/src/dawn_native/d3d12/ShaderModuleD3D12.cpp#197 Change-Id: I71a85171a1dc2d98760f2a5fce5df4eb513f9467 Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/48385 Commit-Queue: Ben Clayton Commit-Queue: Corentin Wallez Reviewed-by: Corentin Wallez --- src/dawn_native/d3d12/ShaderModuleD3D12.cpp | 2 +- src/dawn_native/d3d12/ShaderModuleD3D12.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/dawn_native/d3d12/ShaderModuleD3D12.cpp b/src/dawn_native/d3d12/ShaderModuleD3D12.cpp index 57b1b51358..327e3a1648 100644 --- a/src/dawn_native/d3d12/ShaderModuleD3D12.cpp +++ b/src/dawn_native/d3d12/ShaderModuleD3D12.cpp @@ -194,7 +194,7 @@ namespace dawn_native { namespace d3d12 { SingleShaderStage stage, PipelineLayout* layout, std::string* remappedEntryPointName, - FirstOffsetInfo* firstOffsetInfo) { + FirstOffsetInfo* firstOffsetInfo) const { ASSERT(!IsError()); ScopedTintICEHandler scopedICEHandler(GetDevice()); diff --git a/src/dawn_native/d3d12/ShaderModuleD3D12.h b/src/dawn_native/d3d12/ShaderModuleD3D12.h index d85796d291..98eed9e5a1 100644 --- a/src/dawn_native/d3d12/ShaderModuleD3D12.h +++ b/src/dawn_native/d3d12/ShaderModuleD3D12.h @@ -63,7 +63,7 @@ namespace dawn_native { namespace d3d12 { SingleShaderStage stage, PipelineLayout* layout, std::string* remappedEntryPointName, - FirstOffsetInfo* firstOffsetInfo); + FirstOffsetInfo* firstOffsetInfo) const; ResultOrError TranslateToHLSLWithSPIRVCross(const char* entryPointName, SingleShaderStage stage,