@@ -170,29 +170,29 @@ void Scheduler::SubmitExecution(SubmitInfo& info) {
170
170
void DynamicState::Commit (const Instance& instance, const vk::CommandBuffer& cmdbuf) {
171
171
if (dirty_state.viewports ) {
172
172
dirty_state.viewports = false ;
173
- cmdbuf.setViewportWithCountEXT (viewports);
173
+ cmdbuf.setViewportWithCount (viewports);
174
174
}
175
175
if (dirty_state.scissors ) {
176
176
dirty_state.scissors = false ;
177
- cmdbuf.setScissorWithCountEXT (scissors);
177
+ cmdbuf.setScissorWithCount (scissors);
178
178
}
179
179
if (dirty_state.depth_test_enabled ) {
180
180
dirty_state.depth_test_enabled = false ;
181
- cmdbuf.setDepthTestEnableEXT (depth_test_enabled);
181
+ cmdbuf.setDepthTestEnable (depth_test_enabled);
182
182
}
183
183
if (dirty_state.depth_write_enabled ) {
184
184
dirty_state.depth_write_enabled = false ;
185
185
// Note that this must be set in a command buffer even if depth test is disabled.
186
- cmdbuf.setDepthWriteEnableEXT (depth_write_enabled);
186
+ cmdbuf.setDepthWriteEnable (depth_write_enabled);
187
187
}
188
188
if (depth_test_enabled && dirty_state.depth_compare_op ) {
189
189
dirty_state.depth_compare_op = false ;
190
- cmdbuf.setDepthCompareOpEXT (depth_compare_op);
190
+ cmdbuf.setDepthCompareOp (depth_compare_op);
191
191
}
192
192
if (dirty_state.depth_bounds_test_enabled ) {
193
193
dirty_state.depth_bounds_test_enabled = false ;
194
194
if (instance.IsDepthBoundsSupported ()) {
195
- cmdbuf.setDepthBoundsTestEnableEXT (depth_bounds_test_enabled);
195
+ cmdbuf.setDepthBoundsTestEnable (depth_bounds_test_enabled);
196
196
}
197
197
}
198
198
if (depth_bounds_test_enabled && dirty_state.depth_bounds ) {
@@ -203,36 +203,36 @@ void DynamicState::Commit(const Instance& instance, const vk::CommandBuffer& cmd
203
203
}
204
204
if (dirty_state.depth_bias_enabled ) {
205
205
dirty_state.depth_bias_enabled = false ;
206
- cmdbuf.setDepthBiasEnableEXT (depth_bias_enabled);
206
+ cmdbuf.setDepthBiasEnable (depth_bias_enabled);
207
207
}
208
208
if (depth_bias_enabled && dirty_state.depth_bias ) {
209
209
dirty_state.depth_bias = false ;
210
210
cmdbuf.setDepthBias (depth_bias_constant, depth_bias_clamp, depth_bias_slope);
211
211
}
212
212
if (dirty_state.stencil_test_enabled ) {
213
213
dirty_state.stencil_test_enabled = false ;
214
- cmdbuf.setStencilTestEnableEXT (stencil_test_enabled);
214
+ cmdbuf.setStencilTestEnable (stencil_test_enabled);
215
215
}
216
216
if (stencil_test_enabled) {
217
217
if (dirty_state.stencil_front_ops && dirty_state.stencil_back_ops &&
218
218
stencil_front_ops == stencil_back_ops) {
219
219
dirty_state.stencil_front_ops = false ;
220
220
dirty_state.stencil_back_ops = false ;
221
- cmdbuf.setStencilOpEXT (vk::StencilFaceFlagBits::eFrontAndBack,
222
- stencil_front_ops.fail_op , stencil_front_ops.pass_op ,
223
- stencil_front_ops. depth_fail_op , stencil_front_ops.compare_op );
221
+ cmdbuf.setStencilOp (vk::StencilFaceFlagBits::eFrontAndBack, stencil_front_ops. fail_op ,
222
+ stencil_front_ops.pass_op , stencil_front_ops.depth_fail_op ,
223
+ stencil_front_ops.compare_op );
224
224
} else {
225
225
if (dirty_state.stencil_front_ops ) {
226
226
dirty_state.stencil_front_ops = false ;
227
- cmdbuf.setStencilOpEXT (vk::StencilFaceFlagBits::eFront, stencil_front_ops.fail_op ,
228
- stencil_front_ops.pass_op , stencil_front_ops.depth_fail_op ,
229
- stencil_front_ops.compare_op );
227
+ cmdbuf.setStencilOp (vk::StencilFaceFlagBits::eFront, stencil_front_ops.fail_op ,
228
+ stencil_front_ops.pass_op , stencil_front_ops.depth_fail_op ,
229
+ stencil_front_ops.compare_op );
230
230
}
231
231
if (dirty_state.stencil_back_ops ) {
232
232
dirty_state.stencil_back_ops = false ;
233
- cmdbuf.setStencilOpEXT (vk::StencilFaceFlagBits::eBack, stencil_back_ops.fail_op ,
234
- stencil_back_ops.pass_op , stencil_back_ops.depth_fail_op ,
235
- stencil_back_ops.compare_op );
233
+ cmdbuf.setStencilOp (vk::StencilFaceFlagBits::eBack, stencil_back_ops.fail_op ,
234
+ stencil_back_ops.pass_op , stencil_back_ops.depth_fail_op ,
235
+ stencil_back_ops.compare_op );
236
236
}
237
237
}
238
238
if (dirty_state.stencil_front_reference && dirty_state.stencil_back_reference &&
@@ -291,16 +291,16 @@ void DynamicState::Commit(const Instance& instance, const vk::CommandBuffer& cmd
291
291
if (dirty_state.primitive_restart_enable ) {
292
292
dirty_state.primitive_restart_enable = false ;
293
293
if (instance.IsPrimitiveRestartDisableSupported ()) {
294
- cmdbuf.setPrimitiveRestartEnableEXT (primitive_restart_enable);
294
+ cmdbuf.setPrimitiveRestartEnable (primitive_restart_enable);
295
295
}
296
296
}
297
297
if (dirty_state.cull_mode ) {
298
298
dirty_state.cull_mode = false ;
299
- cmdbuf.setCullModeEXT (cull_mode);
299
+ cmdbuf.setCullMode (cull_mode);
300
300
}
301
301
if (dirty_state.front_face ) {
302
302
dirty_state.front_face = false ;
303
- cmdbuf.setFrontFaceEXT (front_face);
303
+ cmdbuf.setFrontFace (front_face);
304
304
}
305
305
if (dirty_state.blend_constants ) {
306
306
dirty_state.blend_constants = false ;
0 commit comments