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