public void SetStencilWriteMask(MgStencilFaceFlagBits face, uint mask) { var glFaces = (StencilFace)0; switch (face) { case MgStencilFaceFlagBits.BACK_BIT: glFaces = StencilFace.Back; break; case MgStencilFaceFlagBits.FRONT_BIT: glFaces = StencilFace.Front; break; case MgStencilFaceFlagBits.FRONT_AND_BACK: glFaces = StencilFace.FrontAndBack; break; default: throw new NotSupportedException(); } GL.StencilMaskSeparate(glFaces, mask); { var error = GL.GetError(); if (error != ErrorCode.NoError) { Debug.WriteLine("SetStencilWriteMask : " + error); } } }
public void CmdSetStencilWriteMask(MgStencilFaceFlagBits faceMask, UInt32 writeMask) { Interops.vkCmdSetStencilWriteMask(this.Handle, (VkStencilFaceFlags)faceMask, writeMask); }
public void CmdSetStencilReference(MgStencilFaceFlagBits faceMask, UInt32 reference) { Interops.vkCmdSetStencilReference(this.Handle, (VkStencilFaceFlags)faceMask, reference); }
public void SetStencilWriteMask(MgStencilFaceFlagBits face, uint mask) { }
public void CmdSetStencilCompareMask(MgStencilFaceFlagBits faceMask, UInt32 compareMask) { Interops.vkCmdSetStencilCompareMask(this.Handle, (VkStencilFaceFlags)faceMask, compareMask); }
public void CmdSetStencilWriteMask(MgStencilFaceFlagBits faceMask, uint writeMask) { throw new NotImplementedException(); }
public void CmdSetStencilReference(MgStencilFaceFlagBits faceMask, uint reference) { throw new NotImplementedException(); }
public void CmdSetStencilReference(MgStencilFaceFlagBits faceMask, uint reference) { mCommandEncoder.Graphics.SetStencilReference(faceMask, reference); }
public void CmdSetStencilWriteMask(MgStencilFaceFlagBits faceMask, uint writeMask) { mCommandEncoder.Graphics.SetStencilWriteMask(faceMask, writeMask); }
public void CmdSetStencilCompareMask(MgStencilFaceFlagBits faceMask, uint compareMask) { mCommandEncoder.Graphics.SetStencilCompareMask(faceMask, compareMask); }