| 198 | } |
| 199 | |
| 200 | void 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 | |
| 216 | void KHR16BitArithmeticSample::VisualizationSubpass::prepare() |
| 217 | { |
no test coverage detected