Skip to content
This repository was archived by the owner on Oct 28, 2024. It is now read-only.

Commit f20167c

Browse files
committed
Fix validation errors in write_timestamp
1 parent f8de7fa commit f20167c

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

application_sandbox/write_timestamp/main.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -333,10 +333,10 @@ class WriteTimestampSample
333333
// Reset the query for this frame in the query pool and then begin query,
334334
// and so the vkGetQueryPoolResults called before submitting rendering
335335
// commands won't hang.
336-
cmdBuffer->vkCmdPipelineBarrier(
337-
cmdBuffer, VK_PIPELINE_STAGE_TRANSFER_BIT,
338-
VK_PIPELINE_STAGE_COLOR_ATTACHMENT_OUTPUT_BIT, 0, 0, nullptr, 1,
339-
&to_use_query_results, 0, nullptr);
336+
cmdBuffer->vkCmdPipelineBarrier(cmdBuffer, VK_PIPELINE_STAGE_TRANSFER_BIT,
337+
VK_PIPELINE_STAGE_FRAGMENT_SHADER_BIT, 0, 0,
338+
nullptr, 1, &to_use_query_results, 0,
339+
nullptr);
340340
cmdBuffer->vkCmdResetQueryPool(cmdBuffer, *query_pool_,
341341
static_cast<uint32_t>(frame_index), 1);
342342

application_sandbox/write_timestamp/write_timestamp.frag

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
layout(location = 0) out vec4 out_color;
1919
layout(location = 2) in vec4 normal;
2020

21-
layout(set = 0, binding = 2) uniform isamplerBuffer query_data;
21+
layout(set = 0, binding = 2) uniform usamplerBuffer query_data;
2222

2323
void main() {
2424
uint limit = 0x0FFFFFFF;

0 commit comments

Comments
 (0)