Skip to content

Commit

Permalink
nvapi-d3d: Formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
jp7677 committed Jan 21, 2025
1 parent 8bdf43e commit c3a8121
Showing 1 changed file with 13 additions and 13 deletions.
26 changes: 13 additions & 13 deletions src/nvapi/nvapi_d3d_low_latency_device.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -127,23 +127,23 @@ namespace dxvk {
static_assert(static_cast<int>(OUT_OF_BAND_PRESENT_END) - 1 == static_cast<int>(VK_LATENCY_MARKER_OUT_OF_BAND_PRESENT_END_NV));

switch (markerType) {
case (SIMULATION_START):
case (SIMULATION_END):
case (RENDERSUBMIT_START):
case (RENDERSUBMIT_END):
case (PRESENT_START):
case (PRESENT_END):
case (INPUT_SAMPLE):
case (TRIGGER_FLASH):
case SIMULATION_START:
case SIMULATION_END:
case RENDERSUBMIT_START:
case RENDERSUBMIT_END:
case PRESENT_START:
case PRESENT_END:
case INPUT_SAMPLE:
case TRIGGER_FLASH:
return markerType;
// VkLatencyMarkerNV misses PC_LATENCY_PING and all following enum values are offset
// See https://registry.khronos.org/vulkan/specs/1.3-extensions/html/vkspec.html#VUID-VkSetLatencyMarkerInfoNV-marker-parameter
case (PC_LATENCY_PING):
case PC_LATENCY_PING:
return {};
case (OUT_OF_BAND_RENDERSUBMIT_START):
case (OUT_OF_BAND_RENDERSUBMIT_END):
case (OUT_OF_BAND_PRESENT_START):
case (OUT_OF_BAND_PRESENT_END):
case OUT_OF_BAND_RENDERSUBMIT_START:
case OUT_OF_BAND_RENDERSUBMIT_END:
case OUT_OF_BAND_PRESENT_START:
case OUT_OF_BAND_PRESENT_END:
return markerType - 1;
}

Expand Down

0 comments on commit c3a8121

Please sign in to comment.