This repository has been archived by the owner on Jun 16, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 21
/
Copy pathMTLStencilDescriptor.cs
59 lines (51 loc) · 2.66 KB
/
MTLStencilDescriptor.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
using System;
using static Veldrid.MetalBindings.ObjectiveCRuntime;
namespace Veldrid.MetalBindings
{
public struct MTLStencilDescriptor
{
public readonly IntPtr NativePtr;
public MTLStencilOperation stencilFailureOperation
{
get => (MTLStencilOperation)uint_objc_msgSend(NativePtr, sel_stencilFailureOperation);
set => objc_msgSend(NativePtr, sel_setStencilFailureOperation, (uint)value);
}
public MTLStencilOperation depthFailureOperation
{
get => (MTLStencilOperation)uint_objc_msgSend(NativePtr, sel_depthFailureOperation);
set => objc_msgSend(NativePtr, sel_setDepthFailureOperation, (uint)value);
}
public MTLStencilOperation depthStencilPassOperation
{
get => (MTLStencilOperation)uint_objc_msgSend(NativePtr, sel_depthStencilPassOperation);
set => objc_msgSend(NativePtr, sel_setDepthStencilPassOperation, (uint)value);
}
public MTLCompareFunction stencilCompareFunction
{
get => (MTLCompareFunction)uint_objc_msgSend(NativePtr, sel_stencilCompareFunction);
set => objc_msgSend(NativePtr, sel_setStencilCompareFunction, (uint)value);
}
public uint readMask
{
get => uint_objc_msgSend(NativePtr, sel_readMask);
set => objc_msgSend(NativePtr, sel_setReadMask, value);
}
public uint writeMask
{
get => uint_objc_msgSend(NativePtr, sel_writeMask);
set => objc_msgSend(NativePtr, sel_setWriteMask, value);
}
private static readonly Selector sel_depthFailureOperation = "depthFailureOperation";
private static readonly Selector sel_stencilFailureOperation = "stencilFailureOperation";
private static readonly Selector sel_setStencilFailureOperation = "setStencilFailureOperation:";
private static readonly Selector sel_setDepthFailureOperation = "setDepthFailureOperation:";
private static readonly Selector sel_depthStencilPassOperation = "depthStencilPassOperation";
private static readonly Selector sel_setDepthStencilPassOperation = "setDepthStencilPassOperation:";
private static readonly Selector sel_stencilCompareFunction = "stencilCompareFunction";
private static readonly Selector sel_setStencilCompareFunction = "setStencilCompareFunction:";
private static readonly Selector sel_readMask = "readMask";
private static readonly Selector sel_setReadMask = "setReadMask:";
private static readonly Selector sel_writeMask = "writeMask";
private static readonly Selector sel_setWriteMask = "setWriteMask:";
}
}