Skip to content

Commit 84026f6

Browse files
Added a comment to cmdSetDepthBias() to emphasize the order of args
1 parent 6c128a9 commit 84026f6

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

lvk/LVK.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -988,6 +988,7 @@ class ICommandBuffer {
988988
virtual void cmdTraceRays(uint32_t width, uint32_t height, uint32_t depth = 1, const Dependencies& deps = {}) = 0;
989989

990990
virtual void cmdSetBlendColor(const float color[4]) = 0;
991+
// the argument order is correct, so the `clamp` parameter can have a default value
991992
virtual void cmdSetDepthBias(float constantFactor, float slopeFactor, float clamp = 0.0f) = 0;
992993
virtual void cmdSetDepthBiasEnable(bool enable) = 0;
993994

0 commit comments

Comments
 (0)