Lines Matching refs:program
506 void flatshadeVertices (const Program& program, ContainerType& list) in flatshadeVertices() argument
509 …<rr::VertexVaryingInfo>& fragInputs = (program.geometryShader) ? (program.geometryShader->getOutpu… in flatshadeVertices()
521 const Program& program, in clipPrimitives() argument
534 …r::VertexVaryingInfo>& fragInputs = (program.geometryShader) ? (program.geometryShader->getOutpu… in clipPrimitives()
711 const Program& program, in clipPrimitives() argument
721 …<rr::VertexVaryingInfo>& fragInputs = (program.geometryShader) ? (program.geometryShader->getOutpu… in clipPrimitives()
782 const Program& program, in clipPrimitives() argument
787 DE_UNREF(program); in clipPrimitives()
1027 const Program& program, in writeFragmentPackets() argument
1036 const size_t numOutputs = program.fragmentShader->getOutputs().size(); in writeFragmentPackets()
1100 const Program& program, in rasterizePrimitive() argument
1120 …rOutputs[0], buffers.fragmentDepthBuffer, triangle.v2->primitiveID, (int)program.fragmentShader->g… in rasterizePrimitive()
1153 …program.fragmentShader->shadeFragments(&buffers.fragmentPackets[0], numRasterizedPackets, shadingC… in rasterizePrimitive()
1162 …writeFragmentPackets(state, renderTarget, program, &buffers.fragmentPackets[0], numRasterizedPacke… in rasterizePrimitive()
1168 const Program& program, in rasterizePrimitive() argument
1177 …haderOutputs[0], buffers.fragmentDepthBuffer, line.v1->primitiveID, (int)program.fragmentShader->g… in rasterizePrimitive()
1206 …program.fragmentShader->shadeFragments(&buffers.fragmentPackets[0], numRasterizedPackets, shadingC… in rasterizePrimitive()
1215 …writeFragmentPackets(state, renderTarget, program, &buffers.fragmentPackets[0], numRasterizedPacke… in rasterizePrimitive()
1221 const Program& program, in rasterizePrimitive() argument
1243 …aderOutputs[0], buffers.fragmentDepthBuffer, point.v0->primitiveID, (int)program.fragmentShader->g… in rasterizePrimitive()
1271 …program.fragmentShader->shadeFragments(&buffers.fragmentPackets[0], numRasterizedPackets, shadingC… in rasterizePrimitive()
1280 …writeFragmentPackets(state, renderTarget, program, &buffers.fragmentPackets[0], numRasterizedPacke… in rasterizePrimitive()
1287 const Program& program, in rasterize() argument
1291 const int numFragmentOutputs = (int)program.fragmentShader->getOutputs().size(); in rasterize()
1322 rasterizePrimitive(state, renderTarget, program, *it, renderTargetRect, buffers); in rasterize()
1329 …nst RenderState& state, const RenderTarget& renderTarget, const Program& program, ContainerType& p… in drawBasicPrimitives() argument
1336 flatshadeVertices(program, primList); in drawBasicPrimitives()
1340 clipPrimitives(primList, program, clipZ, vpalloc); in drawBasicPrimitives()
1346 rasterize(state, renderTarget, program, primList); in drawBasicPrimitives()
1386 …nst RenderState& state, const RenderTarget& renderTarget, const Program& program, VertexPacket* co… in drawGeometryShaderOutputAsPrimitives() argument
1401 drawBasicPrimitives(state, renderTarget, program, inputPrimitives, vpalloc); in drawGeometryShaderOutputAsPrimitives()
1405 …nst RenderState& state, const RenderTarget& renderTarget, const Program& program, std::vector<type… in drawWithGeometryShader() argument
1408 VertexPacketAllocator vpalloc(program.geometryShader->getOutputs().size()); in drawWithGeometryShader()
1411 GeometryEmitter emitter (vpalloc, program.geometryShader->getNumVerticesOut()); in drawWithGeometryShader()
1413 const int numInvocations = (int)program.geometryShader->getNumInvocations(); in drawWithGeometryShader()
1429 …program.geometryShader->shadePrimitives(emitter, verticesIn, &primitives[0], (int)primitives.size(… in drawWithGeometryShader()
1454 switch (program.geometryShader->getOutputType()) in drawWithGeometryShader()
1456 …ryShaderOutputAsPrimitives<PRIMITIVETYPE_POINTS> (state, renderTarget, program, &emitted[primiti… in drawWithGeometryShader()
1457 …haderOutputAsPrimitives<PRIMITIVETYPE_LINE_STRIP> (state, renderTarget, program, &emitted[primiti… in drawWithGeometryShader()
1458 …erOutputAsPrimitives<PRIMITIVETYPE_TRIANGLE_STRIP> (state, renderTarget, program, &emitted[primiti… in drawWithGeometryShader()
1473 …nst RenderState& state, const RenderTarget& renderTarget, const Program& program, VertexPacket* co… in drawAsPrimitives() argument
1486 if (program.geometryShader) in drawAsPrimitives()
1489 …drawWithGeometryShader<DrawPrimitiveType>(state, renderTarget, program, inputPrimitives, drawConte… in drawAsPrimitives()
1505 drawBasicPrimitives(state, renderTarget, program, basePrimitives, vpalloc); in drawAsPrimitives()
1516 if (command.program.geometryShader) in isValidCommand()
1518 if (command.program.vertexShader->getOutputs() != command.program.geometryShader->getInputs()) in isValidCommand()
1521 if (command.program.geometryShader->getOutputs() != command.program.fragmentShader->getInputs()) in isValidCommand()
1526 if (command.program.vertexShader->getOutputs() != command.program.fragmentShader->getInputs()) in isValidCommand()
1531 …for (size_t varyingNdx = 0; varyingNdx < command.program.vertexShader->getInputs().size(); ++varyi… in isValidCommand()
1532 if (command.program.vertexShader->getInputs()[varyingNdx].type != GENERICVECTYPE_FLOAT && in isValidCommand()
1533 command.program.vertexShader->getInputs()[varyingNdx].type != GENERICVECTYPE_INT32 && in isValidCommand()
1534 command.program.vertexShader->getInputs()[varyingNdx].type != GENERICVECTYPE_UINT32) in isValidCommand()
1536 …for (size_t varyingNdx = 0; varyingNdx < command.program.vertexShader->getOutputs().size(); ++vary… in isValidCommand()
1537 if (command.program.vertexShader->getOutputs()[varyingNdx].type != GENERICVECTYPE_FLOAT && in isValidCommand()
1538 command.program.vertexShader->getOutputs()[varyingNdx].type != GENERICVECTYPE_INT32 && in isValidCommand()
1539 command.program.vertexShader->getOutputs()[varyingNdx].type != GENERICVECTYPE_UINT32) in isValidCommand()
1542 …for (size_t varyingNdx = 0; varyingNdx < command.program.fragmentShader->getInputs().size(); ++var… in isValidCommand()
1543 if (command.program.fragmentShader->getInputs()[varyingNdx].type != GENERICVECTYPE_FLOAT && in isValidCommand()
1544 command.program.fragmentShader->getInputs()[varyingNdx].type != GENERICVECTYPE_INT32 && in isValidCommand()
1545 command.program.fragmentShader->getInputs()[varyingNdx].type != GENERICVECTYPE_UINT32) in isValidCommand()
1547 …for (size_t varyingNdx = 0; varyingNdx < command.program.fragmentShader->getOutputs().size(); ++va… in isValidCommand()
1548 if (command.program.fragmentShader->getOutputs()[varyingNdx].type != GENERICVECTYPE_FLOAT && in isValidCommand()
1549 command.program.fragmentShader->getOutputs()[varyingNdx].type != GENERICVECTYPE_INT32 && in isValidCommand()
1550 command.program.fragmentShader->getOutputs()[varyingNdx].type != GENERICVECTYPE_UINT32) in isValidCommand()
1553 if (command.program.geometryShader) in isValidCommand()
1555 …for (size_t varyingNdx = 0; varyingNdx < command.program.geometryShader->getInputs().size(); ++var… in isValidCommand()
1556 if (command.program.geometryShader->getInputs()[varyingNdx].type != GENERICVECTYPE_FLOAT && in isValidCommand()
1557 command.program.geometryShader->getInputs()[varyingNdx].type != GENERICVECTYPE_INT32 && in isValidCommand()
1558 command.program.geometryShader->getInputs()[varyingNdx].type != GENERICVECTYPE_UINT32) in isValidCommand()
1560 …for (size_t varyingNdx = 0; varyingNdx < command.program.geometryShader->getOutputs().size(); ++va… in isValidCommand()
1561 if (command.program.geometryShader->getOutputs()[varyingNdx].type != GENERICVECTYPE_FLOAT && in isValidCommand()
1562 command.program.geometryShader->getOutputs()[varyingNdx].type != GENERICVECTYPE_INT32 && in isValidCommand()
1563 command.program.geometryShader->getOutputs()[varyingNdx].type != GENERICVECTYPE_UINT32) in isValidCommand()
1568 if ((size_t)command.numVertexAttribs < command.program.vertexShader->getInputs().size()) in isValidCommand()
1572 …if ((size_t)command.renderTarget.numColorBuffers < command.program.fragmentShader->getOutputs().si… in isValidCommand()
1586 …for (size_t varyingNdx = 0; varyingNdx < command.program.fragmentShader->getOutputs().size(); ++va… in isValidCommand()
1591 if (command.program.fragmentShader->getOutputs()[varyingNdx].type != colorType) in isValidCommand()
1596 …for (size_t outputNdx = 0; outputNdx < command.program.vertexShader->getOutputs().size(); ++output… in isValidCommand()
1598 if (!command.program.vertexShader->getOutputs()[outputNdx].flatshade && in isValidCommand()
1599 (command.program.vertexShader->getOutputs()[outputNdx].type == GENERICVECTYPE_INT32 || in isValidCommand()
1600 command.program.vertexShader->getOutputs()[outputNdx].type == GENERICVECTYPE_UINT32)) in isValidCommand()
1603 if (command.program.geometryShader) in isValidCommand()
1604 …for (size_t outputNdx = 0; outputNdx < command.program.geometryShader->getOutputs().size(); ++outp… in isValidCommand()
1606 if (!command.program.geometryShader->getOutputs()[outputNdx].flatshade && in isValidCommand()
1607 (command.program.geometryShader->getOutputs()[outputNdx].type == GENERICVECTYPE_INT32 || in isValidCommand()
1608 command.program.geometryShader->getOutputs()[outputNdx].type == GENERICVECTYPE_UINT32)) in isValidCommand()
1613 if (command.program.geometryShader) in isValidCommand()
1615 …if (command.program.geometryShader->getInputType() == rr::GEOMETRYSHADERINPUTTYPE_POINTS && comman… in isValidCommand()
1618 if (command.program.geometryShader->getInputType() == rr::GEOMETRYSHADERINPUTTYPE_LINES && in isValidCommand()
1624 if (command.program.geometryShader->getInputType() == rr::GEOMETRYSHADERINPUTTYPE_TRIANGLES && in isValidCommand()
1630 …if (command.program.geometryShader->getInputType() == rr::GEOMETRYSHADERINPUTTYPE_LINES_ADJACENCY … in isValidCommand()
1635 …if (command.program.geometryShader->getInputType() == rr::GEOMETRYSHADERINPUTTYPE_TRIANGLES_ADJACE… in isValidCommand()
1751 const size_t numVaryings = command.program.vertexShader->getOutputs().size(); in drawInstanced()
1790 …command.program.vertexShader->shadeVertices(command.vertexAttribs, &vertexPackets[0], numVertexPac… in drawInstanced()
1796 …IMITIVETYPE_TRIANGLES> (command.state, command.renderTarget, command.program, &vertexPackets[0… in drawInstanced()
1797 …TIVETYPE_TRIANGLE_STRIP> (command.state, command.renderTarget, command.program, &vertexPackets[0… in drawInstanced()
1798 …ITIVETYPE_TRIANGLE_FAN> (command.state, command.renderTarget, command.program, &vertexPackets[0… in drawInstanced()
1799 …<PRIMITIVETYPE_LINES> (command.state, command.renderTarget, command.program, &vertexPackets[0… in drawInstanced()
1800 …IMITIVETYPE_LINE_STRIP> (command.state, command.renderTarget, command.program, &vertexPackets[0… in drawInstanced()
1801 …IMITIVETYPE_LINE_LOOP> (command.state, command.renderTarget, command.program, &vertexPackets[0… in drawInstanced()
1802 …<PRIMITIVETYPE_POINTS> (command.state, command.renderTarget, command.program, &vertexPackets[0… in drawInstanced()
1803 …IVETYPE_LINES_ADJACENCY> (command.state, command.renderTarget, command.program, &vertexPackets[0… in drawInstanced()
1804 …YPE_LINE_STRIP_ADJACENCY> (command.state, command.renderTarget, command.program, &vertexPackets[0… in drawInstanced()
1805 …TYPE_TRIANGLES_ADJACENCY> (command.state, command.renderTarget, command.program, &vertexPackets[0… in drawInstanced()
1806 …_TRIANGLE_STRIP_ADJACENCY> (command.state, command.renderTarget, command.program, &vertexPackets[0… in drawInstanced()