示例#1
0
 public ShaderCompilationOptions(
     D3DCompileFlags flags,
     D3DCompileTarget target,
     ReadOnlyMemory <ShaderDefine> defines = default,
     ReadOnlyMemory <byte> secondaryData   = default
     )
 {
     Flags         = flags;
     Target        = target;
     Defines       = defines;
     SecondaryData = secondaryData;
 }
示例#2
0
 public static uint GetCompileFlags(D3DCompileFlags flags) => ((uint)flags & (0b111 >> 29));
示例#3
0
 public static uint GetSecDataFlags(D3DCompileFlags flags) => ((uint)flags >> SecDataShift);