public void Disable(BuiltinShaderDefine define) { m_Bits &= ~ComputeKeywordMask(define); }
public bool IsEnabled(BuiltinShaderDefine define) { return((m_Bits & ComputeKeywordMask(define)) != 0); }
public void Enable(BuiltinShaderDefine define) { m_Bits |= ComputeKeywordMask(define); }
public static bool HasShaderDefine(BuiltinShaderDefine defineHash) { return(HasShaderDefine(Graphics.activeTier, defineHash)); }
private uint ComputeKeywordMask(BuiltinShaderDefine define) { return((uint)(1 << ((int)define % k_SizeInBits))); }
extern public static bool HasShaderDefine(GraphicsTier tier, BuiltinShaderDefine defineHash);
public static bool HasShaderDefine(GraphicsTier tier, BuiltinShaderDefine defineHash) { return(HasShaderDefineImpl(tier, defineHash)); }
private static extern bool HasShaderDefineImpl(GraphicsTier tier, BuiltinShaderDefine defineHash);
public bool IsEnabled(BuiltinShaderDefine define) { return((this.m_Bits & this.ComputeKeywordMask(define)) > 0uL); }
private ulong ComputeKeywordMask(BuiltinShaderDefine define) { return((ulong)(1L << (int)(define % (BuiltinShaderDefine)64 & BuiltinShaderDefine.SHADER_API_GLES30))); }