mirror of
https://github.com/encounter/dawn-cmake.git
synced 2025-06-06 14:43:31 +00:00
s/isPIXEventRuntimeLoaded/IsPIXEventRuntimeLoaded/g
Bug: dawn:44 Change-Id: I15768299cadbd5f193ae0e878befc4f5ba5a1c58 Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/9681 Commit-Queue: François Beaufort <beaufort.francois@gmail.com> Reviewed-by: Corentin Wallez <cwallez@chromium.org>
This commit is contained in:
parent
d64ee1a150
commit
54b4df7069
@ -816,7 +816,7 @@ namespace dawn_native { namespace d3d12 {
|
|||||||
InsertDebugMarkerCmd* cmd = mCommands.NextCommand<InsertDebugMarkerCmd>();
|
InsertDebugMarkerCmd* cmd = mCommands.NextCommand<InsertDebugMarkerCmd>();
|
||||||
const char* label = mCommands.NextData<char>(cmd->length + 1);
|
const char* label = mCommands.NextData<char>(cmd->length + 1);
|
||||||
|
|
||||||
if (ToBackend(GetDevice())->GetFunctions()->isPIXEventRuntimeLoaded()) {
|
if (ToBackend(GetDevice())->GetFunctions()->IsPIXEventRuntimeLoaded()) {
|
||||||
// PIX color is 1 byte per channel in ARGB format
|
// PIX color is 1 byte per channel in ARGB format
|
||||||
constexpr uint64_t kPIXBlackColor = 0xff000000;
|
constexpr uint64_t kPIXBlackColor = 0xff000000;
|
||||||
ToBackend(GetDevice())
|
ToBackend(GetDevice())
|
||||||
@ -828,7 +828,7 @@ namespace dawn_native { namespace d3d12 {
|
|||||||
case Command::PopDebugGroup: {
|
case Command::PopDebugGroup: {
|
||||||
mCommands.NextCommand<PopDebugGroupCmd>();
|
mCommands.NextCommand<PopDebugGroupCmd>();
|
||||||
|
|
||||||
if (ToBackend(GetDevice())->GetFunctions()->isPIXEventRuntimeLoaded()) {
|
if (ToBackend(GetDevice())->GetFunctions()->IsPIXEventRuntimeLoaded()) {
|
||||||
ToBackend(GetDevice())
|
ToBackend(GetDevice())
|
||||||
->GetFunctions()
|
->GetFunctions()
|
||||||
->pixEndEventOnCommandList(commandList.Get());
|
->pixEndEventOnCommandList(commandList.Get());
|
||||||
@ -839,7 +839,7 @@ namespace dawn_native { namespace d3d12 {
|
|||||||
PushDebugGroupCmd* cmd = mCommands.NextCommand<PushDebugGroupCmd>();
|
PushDebugGroupCmd* cmd = mCommands.NextCommand<PushDebugGroupCmd>();
|
||||||
const char* label = mCommands.NextData<char>(cmd->length + 1);
|
const char* label = mCommands.NextData<char>(cmd->length + 1);
|
||||||
|
|
||||||
if (ToBackend(GetDevice())->GetFunctions()->isPIXEventRuntimeLoaded()) {
|
if (ToBackend(GetDevice())->GetFunctions()->IsPIXEventRuntimeLoaded()) {
|
||||||
// PIX color is 1 byte per channel in ARGB format
|
// PIX color is 1 byte per channel in ARGB format
|
||||||
constexpr uint64_t kPIXBlackColor = 0xff000000;
|
constexpr uint64_t kPIXBlackColor = 0xff000000;
|
||||||
ToBackend(GetDevice())
|
ToBackend(GetDevice())
|
||||||
@ -1018,7 +1018,7 @@ namespace dawn_native { namespace d3d12 {
|
|||||||
InsertDebugMarkerCmd* cmd = mCommands.NextCommand<InsertDebugMarkerCmd>();
|
InsertDebugMarkerCmd* cmd = mCommands.NextCommand<InsertDebugMarkerCmd>();
|
||||||
const char* label = mCommands.NextData<char>(cmd->length + 1);
|
const char* label = mCommands.NextData<char>(cmd->length + 1);
|
||||||
|
|
||||||
if (ToBackend(GetDevice())->GetFunctions()->isPIXEventRuntimeLoaded()) {
|
if (ToBackend(GetDevice())->GetFunctions()->IsPIXEventRuntimeLoaded()) {
|
||||||
// PIX color is 1 byte per channel in ARGB format
|
// PIX color is 1 byte per channel in ARGB format
|
||||||
constexpr uint64_t kPIXBlackColor = 0xff000000;
|
constexpr uint64_t kPIXBlackColor = 0xff000000;
|
||||||
ToBackend(GetDevice())
|
ToBackend(GetDevice())
|
||||||
@ -1030,7 +1030,7 @@ namespace dawn_native { namespace d3d12 {
|
|||||||
case Command::PopDebugGroup: {
|
case Command::PopDebugGroup: {
|
||||||
mCommands.NextCommand<PopDebugGroupCmd>();
|
mCommands.NextCommand<PopDebugGroupCmd>();
|
||||||
|
|
||||||
if (ToBackend(GetDevice())->GetFunctions()->isPIXEventRuntimeLoaded()) {
|
if (ToBackend(GetDevice())->GetFunctions()->IsPIXEventRuntimeLoaded()) {
|
||||||
ToBackend(GetDevice())
|
ToBackend(GetDevice())
|
||||||
->GetFunctions()
|
->GetFunctions()
|
||||||
->pixEndEventOnCommandList(commandList.Get());
|
->pixEndEventOnCommandList(commandList.Get());
|
||||||
@ -1041,7 +1041,7 @@ namespace dawn_native { namespace d3d12 {
|
|||||||
PushDebugGroupCmd* cmd = mCommands.NextCommand<PushDebugGroupCmd>();
|
PushDebugGroupCmd* cmd = mCommands.NextCommand<PushDebugGroupCmd>();
|
||||||
const char* label = mCommands.NextData<char>(cmd->length + 1);
|
const char* label = mCommands.NextData<char>(cmd->length + 1);
|
||||||
|
|
||||||
if (ToBackend(GetDevice())->GetFunctions()->isPIXEventRuntimeLoaded()) {
|
if (ToBackend(GetDevice())->GetFunctions()->IsPIXEventRuntimeLoaded()) {
|
||||||
// PIX color is 1 byte per channel in ARGB format
|
// PIX color is 1 byte per channel in ARGB format
|
||||||
constexpr uint64_t kPIXBlackColor = 0xff000000;
|
constexpr uint64_t kPIXBlackColor = 0xff000000;
|
||||||
ToBackend(GetDevice())
|
ToBackend(GetDevice())
|
||||||
|
@ -71,7 +71,7 @@ namespace dawn_native { namespace d3d12 {
|
|||||||
return {};
|
return {};
|
||||||
}
|
}
|
||||||
|
|
||||||
bool PlatformFunctions::isPIXEventRuntimeLoaded() const {
|
bool PlatformFunctions::IsPIXEventRuntimeLoaded() const {
|
||||||
return mPIXEventRuntimeLib.Valid();
|
return mPIXEventRuntimeLib.Valid();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -35,7 +35,7 @@ namespace dawn_native { namespace d3d12 {
|
|||||||
~PlatformFunctions();
|
~PlatformFunctions();
|
||||||
|
|
||||||
MaybeError LoadFunctions();
|
MaybeError LoadFunctions();
|
||||||
bool isPIXEventRuntimeLoaded() const;
|
bool IsPIXEventRuntimeLoaded() const;
|
||||||
|
|
||||||
// Functions from d3d12.dll
|
// Functions from d3d12.dll
|
||||||
PFN_D3D12_CREATE_DEVICE d3d12CreateDevice = nullptr;
|
PFN_D3D12_CREATE_DEVICE d3d12CreateDevice = nullptr;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user