Lines Matching refs:rr

45 class ColorVertexShader : public rr::VertexShader
48 ColorVertexShader (void) : rr::VertexShader(2, 2) in ColorVertexShader()
50 m_inputs[0].type = rr::GENERICVECTYPE_FLOAT; in ColorVertexShader()
51 m_inputs[1].type = rr::GENERICVECTYPE_FLOAT; in ColorVertexShader()
53 m_outputs[0].type = rr::GENERICVECTYPE_FLOAT; in ColorVertexShader()
54 m_outputs[1].type = rr::GENERICVECTYPE_FLOAT; in ColorVertexShader()
59 virtual void shadeVertices (const rr::VertexAttrib* inputs, in shadeVertices()
60 rr::VertexPacket* const* packets, in shadeVertices()
68 rr::VertexPacket* const packet = packets[packetNdx]; in shadeVertices()
80 class TexCoordVertexShader : public rr::VertexShader
83 TexCoordVertexShader (void) : rr::VertexShader(2, 2) in TexCoordVertexShader()
85 m_inputs[0].type = rr::GENERICVECTYPE_FLOAT; in TexCoordVertexShader()
86 m_inputs[1].type = rr::GENERICVECTYPE_FLOAT; in TexCoordVertexShader()
88 m_outputs[0].type = rr::GENERICVECTYPE_FLOAT; in TexCoordVertexShader()
89 m_outputs[1].type = rr::GENERICVECTYPE_FLOAT; in TexCoordVertexShader()
94 virtual void shadeVertices (const rr::VertexAttrib* inputs, in shadeVertices()
95 rr::VertexPacket* const* packets, in shadeVertices()
103 rr::VertexPacket* const packet = packets[packetNdx]; in shadeVertices()
115 class ColorFragmentShader : public rr::FragmentShader
124 : rr::FragmentShader (2, 1) in ColorFragmentShader()
130 m_inputs[0].type = rr::GENERICVECTYPE_FLOAT; in ColorFragmentShader()
131 m_inputs[1].type = rr::GENERICVECTYPE_FLOAT; in ColorFragmentShader()
132 …m_outputs[0].type = (channelClass == tcu::TEXTURECHANNELCLASS_SIGNED_INTEGER)? rr::GENERICVECTYPE_… in ColorFragmentShader()
133 (channelClass == tcu::TEXTURECHANNELCLASS_UNSIGNED_INTEGER)? rr::GENERICVECTYPE_UINT32 in ColorFragmentShader()
134 : rr::GENERICVECTYPE_FLOAT; in ColorFragmentShader()
139 virtual void shadeFragments (rr::FragmentPacket* packets, in shadeFragments()
141 const rr::FragmentShadingContext& context) const in shadeFragments()
145 const rr::FragmentPacket& packet = packets[packetNdx]; in shadeFragments()
151 const tcu::Vec4 vtxPosition = rr::readVarying<float>(packet, context, 0, fragNdx); in shadeFragments()
152 rr::writeFragmentDepth(context, packetNdx, fragNdx, 0, vtxPosition.z()); in shadeFragments()
158 const tcu::Vec4 vtxColor = rr::readVarying<float>(packet, context, 1, fragNdx); in shadeFragments()
159 rr::writeFragmentOutput(context, packetNdx, fragNdx, 0, vtxColor); in shadeFragments()
165 class CoordinateCaptureFragmentShader : public rr::FragmentShader
169 : rr::FragmentShader(2, 1) in CoordinateCaptureFragmentShader()
171 m_inputs[0].type = rr::GENERICVECTYPE_FLOAT; in CoordinateCaptureFragmentShader()
172 m_inputs[1].type = rr::GENERICVECTYPE_FLOAT; in CoordinateCaptureFragmentShader()
173 m_outputs[0].type = rr::GENERICVECTYPE_FLOAT; in CoordinateCaptureFragmentShader()
180 virtual void shadeFragments (rr::FragmentPacket* packets, in shadeFragments()
182 const rr::FragmentShadingContext& context) const in shadeFragments()
186 const rr::FragmentPacket& packet = packets[packetNdx]; in shadeFragments()
190 const tcu::Vec4 vtxTexCoord = rr::readVarying<float>(packet, context, 1, fragNdx); in shadeFragments()
191 rr::writeFragmentOutput(context, packetNdx, fragNdx, 0, vtxTexCoord); in shadeFragments()
202 virtual rr::Program getReferenceProgram (void) const = 0;
217 virtual rr::Program getReferenceProgram (void) const in getReferenceProgram()
219 return rr::Program(&m_vertexShader, &m_fragmentShader); in getReferenceProgram()
231 const rr::Program* const program);
237 void draw (const rr::RenderState& renderState,
238 const rr::PrimitiveType primitive,
241 void draw (const rr::RenderState& renderState,
242 const rr::PrimitiveType primitive,
246 const rr::ViewportState getViewportState (void) const;
249 rr::Renderer m_renderer;
262 rr::RenderTarget* m_renderTarget;
263 const rr::Program* m_program;
266 rr::TestFunc mapVkCompareOp (vk::VkCompareOp compareFunc);
267 rr::PrimitiveType mapVkPrimitiveTopology (vk::VkPrimitiveTopology primitiveTopology);
268 rr::BlendFunc mapVkBlendFactor (vk::VkBlendFactor blendFactor);
269 rr::BlendEquation mapVkBlendOp (vk::VkBlendOp blendOp);
271 rr::StencilOp mapVkStencilOp (vk::VkStencilOp stencilOp);