public void ClearDepth(Texture texture, float depth) { ResourceTransition(texture, ResourceStates.DepthRead, ResourceStates.Present); nativeCommandList.ClearDepthStencilView(texture.NativeDepthStencilView, ClearFlags.Depth, depth, 0); }