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; }
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 }