Fix Metal depth comparison initialization (#4886)

This commit is contained in:
Ben Doherty
2021-11-23 12:00:58 -08:00
committed by GitHub
parent 15001524bd
commit 3feef4e84b

View File

@@ -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