MCPcopy Create free account
hub / github.com/KhronosGroup/Vulkan-Samples / draw

Method draw

samples/performance/16bit_arithmetic/16bit_arithmetic.cpp:200–214  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

198}
199
200void KHR16BitArithmeticSample::VisualizationSubpass::draw(vkb::core::CommandBufferC &command_buffer)
201{
202 command_buffer.bind_pipeline_layout(*layout);
203
204 // A depth-stencil attachment exists in the default render pass, make sure we ignore it.
205 vkb::rendering::DepthStencilStateC ds_state = {};
206 ds_state.depth_test_enable = VK_FALSE;
207 ds_state.stencil_test_enable = VK_FALSE;
208 ds_state.depth_write_enable = VK_FALSE;
209 ds_state.depth_compare_op = VK_COMPARE_OP_ALWAYS;
210 command_buffer.set_depth_stencil_state(ds_state);
211
212 command_buffer.bind_image(*view, *sampler, 0, 0, 0);
213 command_buffer.draw(3, 1, 0, 0);
214}
215
216void KHR16BitArithmeticSample::VisualizationSubpass::prepare()
217{

Callers 1

draw_renderpassMethod · 0.45

Calls 3

bind_pipeline_layoutMethod · 0.80
bind_imageMethod · 0.45

Tested by

no test coverage detected