Home | History | Annotate | Download | only in Shader

Lines Matching refs:Shader

24 	VertexShader::VertexShader(const VertexShader *vs) : Shader()
40 append(new sw::Shader::Instruction(*vs->getInstruction(i)));
55 VertexShader::VertexShader(const unsigned long *token) : Shader()
104 Shader::Opcode opcode = (Shader::Opcode)(token[i] & 0x0000FFFF);
108 case Shader::OPCODE_TEXCOORD:
109 case Shader::OPCODE_TEXKILL:
110 case Shader::OPCODE_TEX:
111 case Shader::OPCODE_TEXBEM:
112 case Shader::OPCODE_TEXBEML:
113 case Shader::OPCODE_TEXREG2AR:
114 case Shader::OPCODE_TEXREG2GB:
115 case Shader::OPCODE_TEXM3X2PAD:
116 case Shader::OPCODE_TEXM3X2TEX:
117 case Shader::OPCODE_TEXM3X3PAD:
118 case Shader::OPCODE_TEXM3X3TEX:
119 case Shader::OPCODE_RESERVED0:
120 case Shader::OPCODE_TEXM3X3SPEC:
121 case Shader::OPCODE_TEXM3X3VSPEC:
122 case Shader::OPCODE_TEXREG2RGB:
123 case Shader::OPCODE_TEXDP3TEX:
124 case Shader::OPCODE_TEXM3X2DEPTH:
125 case Shader::OPCODE_TEXDP3:
126 case Shader::OPCODE_TEXM3X3:
127 case Shader::OPCODE_TEXDEPTH:
128 case Shader::OPCODE_CMP0:
129 case Shader::OPCODE_BEM:
130 case Shader::OPCODE_DP2ADD:
131 case Shader::OPCODE_DFDX:
132 case Shader::OPCODE_DFDY:
133 case Shader::OPCODE_TEXLDD:
168 if(instruction[i]->opcode == Shader::OPCODE_DCL &&
169 instruction[i]->dst.type == Shader::PARAMETER_INPUT)
182 output[Pos][0] = Semantic(Shader::USAGE_POSITION, 0);
183 output[Pos][1] = Semantic(Shader::USAGE_POSITION, 0);
184 output[Pos][2] = Semantic(Shader::USAGE_POSITION, 0);
185 output[Pos][3] = Semantic(Shader::USAGE_POSITION, 0);
193 case Shader::PARAMETER_RASTOUT:
200 output[Fog][0] = Semantic(Shader::USAGE_FOG, 0);
203 output[Pts][1] = Semantic(Shader::USAGE_PSIZE, 0);
209 case Shader::PARAMETER_ATTROUT:
212 if(dst.x) output[C0][0] = Semantic(Shader::USAGE_COLOR, 0);
213 if(dst.y) output[C0][1] = Semantic(Shader::USAGE_COLOR, 0);
214 if(dst.z) output[C0][2] = Semantic(Shader::USAGE_COLOR, 0);
215 if(dst.w) output[C0][3] = Semantic(Shader::USAGE_COLOR, 0);
219 if(dst.x) output[C1][0] = Semantic(Shader::USAGE_COLOR, 1);
220 if(dst.y) output[C1][1] = Semantic(Shader::USAGE_COLOR, 1);
221 if(dst.z) output[C1][2] = Semantic(Shader::USAGE_COLOR, 1);
222 if(dst.w) output[C1][3] = Semantic(Shader::USAGE_COLOR, 1);
226 case Shader::PARAMETER_TEXCRDOUT:
227 if(dst.x) output[T0 + dst.index][0] = Semantic(Shader::USAGE_TEXCOORD, dst.index);
228 if(dst.y) output[T0 + dst.index][1] = Semantic(Shader::USAGE_TEXCOORD, dst.index);
229 if(dst.z) output[T0 + dst.index][2] = Semantic(Shader::USAGE_TEXCOORD, dst.index);
230 if(dst.w) output[T0 + dst.index][3] = Semantic(Shader::USAGE_TEXCOORD, dst.index);
237 else // Shader Model 3.0 input declaration
241 if(instruction[i]->opcode == Shader::OPCODE_DCL &&
242 instruction[i]->dst.type == Shader::PARAMETER_OUTPUT)
254 if(usage == Shader::USAGE_POSITION && usageIndex == 0)
259 if(usage == Shader::USAGE_PSIZE && usageIndex == 0)