Ejemplo n.º 1
0
        public MTLDepthStencilDescriptor GenerateDescriptor()
        {
            return(new MTLDepthStencilDescriptor
            {
                // TODO : add this back in later
                DepthCompareFunction = GetDepthCompareFunction(DepthCompareFunction),
                DepthWriteEnabled = DepthWriteEnabled,
                BackFaceStencil = Back.GetDescriptor(),
                FrontFaceStencil = Front.GetDescriptor(),
            });

            //dsDescriptor.FrontFaceStencil.ReadMask = frontCompareMask;
            //dsDescriptor.FrontFaceStencil.WriteMask = frontWriteMask;
            //dsDescriptor.BackFaceStencil.ReadMask = backCompareMask;
            //dsDescriptor.BackFaceStencil.WriteMask = backWriteMask;
        }