Example #1
0
 public void Disable(BuiltinShaderDefine define)
 {
     m_Bits &= ~ComputeKeywordMask(define);
 }
Example #2
0
 public bool IsEnabled(BuiltinShaderDefine define)
 {
     return((m_Bits & ComputeKeywordMask(define)) != 0);
 }
Example #3
0
 public void Enable(BuiltinShaderDefine define)
 {
     m_Bits |= ComputeKeywordMask(define);
 }
 public static bool HasShaderDefine(BuiltinShaderDefine defineHash)
 {
     return(HasShaderDefine(Graphics.activeTier, defineHash));
 }
Example #5
0
 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));
 }
Example #8
0
 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)));
 }