Fix Metal depth comparison initialization (#4886)
This commit is contained in:
@@ -259,7 +259,7 @@ using PipelineStateCache = StateCache<PipelineState, id<MTLRenderPipelineState>,
|
||||
// Depth-stencil State
|
||||
|
||||
struct DepthStencilState {
|
||||
MTLCompareFunction compareFunction = MTLCompareFunctionNever; // 8 bytes
|
||||
MTLCompareFunction compareFunction = MTLCompareFunctionAlways; // 8 bytes
|
||||
bool depthWriteEnabled = false; // 1 byte
|
||||
char padding[7] = { 0 }; // 7 bytes
|
||||
|
||||
|
||||
Reference in New Issue
Block a user