From 54b4df706968359c8c5a332e06de3dc3d372e2c8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fran=C3=A7ois=20Beaufort?= Date: Fri, 2 Aug 2019 09:57:28 +0000 Subject: [PATCH] s/isPIXEventRuntimeLoaded/IsPIXEventRuntimeLoaded/g MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Bug: dawn:44 Change-Id: I15768299cadbd5f193ae0e878befc4f5ba5a1c58 Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/9681 Commit-Queue: François Beaufort Reviewed-by: Corentin Wallez --- src/dawn_native/d3d12/CommandBufferD3D12.cpp | 12 ++++++------ src/dawn_native/d3d12/PlatformFunctions.cpp | 2 +- src/dawn_native/d3d12/PlatformFunctions.h | 2 +- 3 files changed, 8 insertions(+), 8 deletions(-) diff --git a/src/dawn_native/d3d12/CommandBufferD3D12.cpp b/src/dawn_native/d3d12/CommandBufferD3D12.cpp index 8678ecd082..e041f8c774 100644 --- a/src/dawn_native/d3d12/CommandBufferD3D12.cpp +++ b/src/dawn_native/d3d12/CommandBufferD3D12.cpp @@ -816,7 +816,7 @@ namespace dawn_native { namespace d3d12 { InsertDebugMarkerCmd* cmd = mCommands.NextCommand(); const char* label = mCommands.NextData(cmd->length + 1); - if (ToBackend(GetDevice())->GetFunctions()->isPIXEventRuntimeLoaded()) { + if (ToBackend(GetDevice())->GetFunctions()->IsPIXEventRuntimeLoaded()) { // PIX color is 1 byte per channel in ARGB format constexpr uint64_t kPIXBlackColor = 0xff000000; ToBackend(GetDevice()) @@ -828,7 +828,7 @@ namespace dawn_native { namespace d3d12 { case Command::PopDebugGroup: { mCommands.NextCommand(); - if (ToBackend(GetDevice())->GetFunctions()->isPIXEventRuntimeLoaded()) { + if (ToBackend(GetDevice())->GetFunctions()->IsPIXEventRuntimeLoaded()) { ToBackend(GetDevice()) ->GetFunctions() ->pixEndEventOnCommandList(commandList.Get()); @@ -839,7 +839,7 @@ namespace dawn_native { namespace d3d12 { PushDebugGroupCmd* cmd = mCommands.NextCommand(); const char* label = mCommands.NextData(cmd->length + 1); - if (ToBackend(GetDevice())->GetFunctions()->isPIXEventRuntimeLoaded()) { + if (ToBackend(GetDevice())->GetFunctions()->IsPIXEventRuntimeLoaded()) { // PIX color is 1 byte per channel in ARGB format constexpr uint64_t kPIXBlackColor = 0xff000000; ToBackend(GetDevice()) @@ -1018,7 +1018,7 @@ namespace dawn_native { namespace d3d12 { InsertDebugMarkerCmd* cmd = mCommands.NextCommand(); const char* label = mCommands.NextData(cmd->length + 1); - if (ToBackend(GetDevice())->GetFunctions()->isPIXEventRuntimeLoaded()) { + if (ToBackend(GetDevice())->GetFunctions()->IsPIXEventRuntimeLoaded()) { // PIX color is 1 byte per channel in ARGB format constexpr uint64_t kPIXBlackColor = 0xff000000; ToBackend(GetDevice()) @@ -1030,7 +1030,7 @@ namespace dawn_native { namespace d3d12 { case Command::PopDebugGroup: { mCommands.NextCommand(); - if (ToBackend(GetDevice())->GetFunctions()->isPIXEventRuntimeLoaded()) { + if (ToBackend(GetDevice())->GetFunctions()->IsPIXEventRuntimeLoaded()) { ToBackend(GetDevice()) ->GetFunctions() ->pixEndEventOnCommandList(commandList.Get()); @@ -1041,7 +1041,7 @@ namespace dawn_native { namespace d3d12 { PushDebugGroupCmd* cmd = mCommands.NextCommand(); const char* label = mCommands.NextData(cmd->length + 1); - if (ToBackend(GetDevice())->GetFunctions()->isPIXEventRuntimeLoaded()) { + if (ToBackend(GetDevice())->GetFunctions()->IsPIXEventRuntimeLoaded()) { // PIX color is 1 byte per channel in ARGB format constexpr uint64_t kPIXBlackColor = 0xff000000; ToBackend(GetDevice()) diff --git a/src/dawn_native/d3d12/PlatformFunctions.cpp b/src/dawn_native/d3d12/PlatformFunctions.cpp index d9137365f6..b3354b182f 100644 --- a/src/dawn_native/d3d12/PlatformFunctions.cpp +++ b/src/dawn_native/d3d12/PlatformFunctions.cpp @@ -71,7 +71,7 @@ namespace dawn_native { namespace d3d12 { return {}; } - bool PlatformFunctions::isPIXEventRuntimeLoaded() const { + bool PlatformFunctions::IsPIXEventRuntimeLoaded() const { return mPIXEventRuntimeLib.Valid(); } diff --git a/src/dawn_native/d3d12/PlatformFunctions.h b/src/dawn_native/d3d12/PlatformFunctions.h index ec51ba18c5..f367bfce81 100644 --- a/src/dawn_native/d3d12/PlatformFunctions.h +++ b/src/dawn_native/d3d12/PlatformFunctions.h @@ -35,7 +35,7 @@ namespace dawn_native { namespace d3d12 { ~PlatformFunctions(); MaybeError LoadFunctions(); - bool isPIXEventRuntimeLoaded() const; + bool IsPIXEventRuntimeLoaded() const; // Functions from d3d12.dll PFN_D3D12_CREATE_DEVICE d3d12CreateDevice = nullptr;