예제 #1
0
        public ShaderVariable(VideoCom video, string name, IntPtr vertexHandle, IntPtr pixelHandel, ShaderModelCom vertexModel, ShaderModelCom pixelModel)
        {
            Name = name;
            com  = new ShaderVariableCom(video, vertexHandle, pixelHandel, vertexModel, pixelModel);

            valueArrayObject = new WeakReference(null);
            Apply            = setNothing;
        }
예제 #2
0
        public ShaderVariable(VideoCom video, string name, IntPtr vertexHandle, IntPtr pixelHandel, ShaderModelCom vertexModel, ShaderModelCom pixelModel)
        {
            Name = name;
            com = new ShaderVariableCom(video, vertexHandle, pixelHandel, vertexModel, pixelModel);

            valueArrayObject = new WeakReference(null);
            Apply = setNothing;
        }
예제 #3
0
 public ShaderVariable(string name, ShaderModelCom vertexShader, ShaderModelCom pixelShader, int vertexOffset, int pixelOffset)
 {
     Name = name;
     com  = new ShaderVariableCom(vertexShader, pixelShader, vertexOffset, pixelOffset);
                 #if WP8
     this.vertexOffset = vertexOffset;
     this.pixelOffset  = pixelOffset;
     int vsPtr, psPtr;
     com.GetDataPtrs(out vsPtr, out psPtr);
     vertexBytes = new IntPtr(vsPtr);
     pixelBytes  = new IntPtr(psPtr);
                 #endif
 }
예제 #4
0
 public ShaderVariable(string name, ShaderModelCom vertexShader, ShaderModelCom pixelShader, int vertexOffset, int pixelOffset)
 {
     Name = name;
     com = new ShaderVariableCom(vertexShader, pixelShader, vertexOffset, pixelOffset);
     #if WP8
     this.vertexOffset = vertexOffset;
     this.pixelOffset = pixelOffset;
     int vsPtr, psPtr;
     com.GetDataPtrs(out vsPtr, out psPtr);
     vertexBytes = new IntPtr(vsPtr);
     pixelBytes = new IntPtr(psPtr);
     #endif
 }