@@ -301,7 +301,7 @@ class NBL_API2 IGPUCommandBuffer : public IBackendObject
301
301
bool bindIndexBuffer (const asset::SBufferBinding<const IGPUBuffer>& binding, const asset::E_INDEX_TYPE indexType);
302
302
303
303
// ! dynamic state
304
- inline bool setScissor (const uint32_t first, const std::span<const VkRect2D> scissors)
304
+ inline bool setScissor (const std::span<const VkRect2D> scissors, const uint32_t first= 0 )
305
305
{
306
306
const uint32_t count = scissors.size ();
307
307
if (invalidDynamic (first,count))
@@ -321,9 +321,9 @@ class NBL_API2 IGPUCommandBuffer : public IBackendObject
321
321
}
322
322
[[deprecated]] inline bool setScissor (const uint32_t first, const uint32_t count, const VkRect2D* const pScissors)
323
323
{
324
- return setScissor (first, {pScissors,count});
324
+ return setScissor ({pScissors,count},first );
325
325
}
326
- inline bool setViewport (const uint32_t first, const std::span<const asset::SViewport> viewports)
326
+ inline bool setViewport (const std::span<const asset::SViewport> viewports, const uint32_t first= 0 )
327
327
{
328
328
const uint32_t count = viewports.size ();
329
329
if (invalidDynamic (first,count))
@@ -333,7 +333,7 @@ class NBL_API2 IGPUCommandBuffer : public IBackendObject
333
333
}
334
334
[[deprecated]] inline bool setViewport (const uint32_t first, const uint32_t count, const asset::SViewport* const pViewports)
335
335
{
336
- return setViewport (first, {pViewports,count});
336
+ return setViewport ({pViewports,count},first );
337
337
}
338
338
bool setLineWidth (const float width);
339
339
inline bool setDepthBias (const float depthBiasConstantFactor, const float depthBiasClamp, const float depthBiasSlopeFactor)
0 commit comments