static public int constructor(IntPtr l)
 {
     try {
         int argc = LuaDLL.lua_gettop(l);
         UnityEngine.Experimental.Rendering.RenderStateBlock o;
         if (argc == 2)
         {
             UnityEngine.Experimental.Rendering.RenderStateMask a1;
             checkEnum(l, 2, out a1);
             o = new UnityEngine.Experimental.Rendering.RenderStateBlock(a1);
             pushValue(l, true);
             pushValue(l, o);
             return(2);
         }
         else if (argc <= 2)
         {
             o = new UnityEngine.Experimental.Rendering.RenderStateBlock();
             pushValue(l, true);
             pushValue(l, o);
             return(2);
         }
         return(error(l, "New object failed."));
     }
     catch (Exception e) {
         return(error(l, e));
     }
 }
 static public int constructor(IntPtr l)
 {
     try {
         UnityEngine.Experimental.Rendering.RenderStateBlock o;
         UnityEngine.Experimental.Rendering.RenderStateMask  a1;
         checkEnum(l, 2, out a1);
         o = new UnityEngine.Experimental.Rendering.RenderStateBlock(a1);
         pushValue(l, true);
         pushValue(l, o);
         return(2);
     }
     catch (Exception e) {
         return(error(l, e));
     }
 }
 extern private void DrawRenderers_StateBlock_Internal(FilterResults renderers, ref DrawRendererSettings drawSettings, FilterRenderersSettings filterSettings, RenderStateBlock stateBlock);
예제 #4
0
 public void DrawRenderers(FilterResults renderers, ref DrawRendererSettings drawSettings, FilterRenderersSettings filterSettings, RenderStateBlock stateBlock)
 {
     CheckValid();
     DrawRenderers_StateBlock_Internal(renderers, ref drawSettings, filterSettings, stateBlock);
 }
예제 #5
0
 public RenderStateMapping(RenderStateBlock stateBlock)
 {
     this = new RenderStateMapping(null, stateBlock);
 }
예제 #6
0
 public RenderStateMapping(string renderType, RenderStateBlock stateBlock)
 {
     this.m_RenderTypeID = Shader.TagToID(renderType);
     this.m_StateBlock   = stateBlock;
 }
 private static extern void INTERNAL_CALL_DrawRenderers_StateBlock_Internal(ref ScriptableRenderContext self, ref FilterResults renderers, ref DrawRendererSettings drawSettings, ref FilterRenderersSettings filterSettings, ref RenderStateBlock stateBlock);
 private void DrawRenderers_StateBlock_Internal(FilterResults renderers, ref DrawRendererSettings drawSettings, FilterRenderersSettings filterSettings, RenderStateBlock stateBlock)
 {
     ScriptableRenderContext.INTERNAL_CALL_DrawRenderers_StateBlock_Internal(ref this, ref renderers, ref drawSettings, ref filterSettings, ref stateBlock);
 }
 public RenderStateMapping(RenderStateBlock stateBlock) : this(null, stateBlock)
 {
 }