Home
last modified time | relevance | path

Searched refs:spirvShader (Results 1 – 13 of 13) sorted by relevance

/external/swiftshader/src/Pipeline/
DVertexProgram.cpp30 SpirvShader const *spirvShader, in VertexProgram() argument
32 : VertexRoutine(state, pipelineLayout, spirvShader) in VertexProgram()
35 routine.setImmutableInputBuiltins(spirvShader); in VertexProgram()
42 …routine.setInputBuiltin(spirvShader, spv::BuiltInViewIndex, [&](const SpirvShader::BuiltinMapping … in VertexProgram()
47 …routine.setInputBuiltin(spirvShader, spv::BuiltInInstanceIndex, [&](const SpirvShader::BuiltinMapp… in VertexProgram()
53 …routine.setInputBuiltin(spirvShader, spv::BuiltInSubgroupSize, [&](const SpirvShader::BuiltinMappi… in VertexProgram()
73 auto it = spirvShader->inputBuiltins.find(spv::BuiltInVertexIndex); in program()
74 if(it != spirvShader->inputBuiltins.end()) in program()
83 spirvShader->emit(&routine, activeLaneMask, storesAndAtomicsMask, descriptorSets); in program()
85 spirvShader->emitEpilog(&routine); in program()
[all …]
DPixelProgram.cpp74 routine.setImmutableInputBuiltins(spirvShader); in setBuiltins()
106 …routine.setInputBuiltin(spirvShader, spv::BuiltInViewIndex, [&](const SpirvShader::BuiltinMapping … in setBuiltins()
111 …routine.setInputBuiltin(spirvShader, spv::BuiltInFragCoord, [&](const SpirvShader::BuiltinMapping … in setBuiltins()
119 …routine.setInputBuiltin(spirvShader, spv::BuiltInPointCoord, [&](const SpirvShader::BuiltinMapping… in setBuiltins()
125 …routine.setInputBuiltin(spirvShader, spv::BuiltInSubgroupSize, [&](const SpirvShader::BuiltinMappi… in setBuiltins()
130 …routine.setInputBuiltin(spirvShader, spv::BuiltInHelperInvocation, [&](const SpirvShader::BuiltinM… in setBuiltins()
146 auto it = spirvShader->inputBuiltins.find(spv::BuiltInFrontFacing); in applyShader()
147 if(it != spirvShader->inputBuiltins.end()) in applyShader()
154 it = spirvShader->inputBuiltins.find(spv::BuiltInSampleMask); in applyShader()
155 if(it != spirvShader->inputBuiltins.end()) in applyShader()
[all …]
DVertexRoutine.cpp29 SpirvShader const *spirvShader) in VertexRoutine() argument
32 , spirvShader(spirvShader) in VertexRoutine()
34 spirvShader->emitProlog(&routine); in VertexRoutine()
91 if(spirvShader->inputs[i + 0].Type != SpirvShader::ATTRIBTYPE_UNUSED || in readInput()
92 spirvShader->inputs[i + 1].Type != SpirvShader::ATTRIBTYPE_UNUSED || in readInput()
93 spirvShader->inputs[i + 2].Type != SpirvShader::ATTRIBTYPE_UNUSED || in readInput()
94 spirvShader->inputs[i + 3].Type != SpirvShader::ATTRIBTYPE_UNUSED) in readInput()
116 auto it = spirvShader->outputBuiltins.find(spv::BuiltInPosition); in computeClipFlags()
117 if(it != spirvShader->outputBuiltins.end()) in computeClipFlags()
154 auto it = spirvShader->outputBuiltins.find(spv::BuiltInCullDistance); in computeCullMask()
[all …]
DPixelProgram.hpp28 SpirvShader const *spirvShader, in PixelProgram() argument
30 : PixelRoutine(state, pipelineLayout, spirvShader, descriptorSets) in PixelProgram()
DVertexRoutine.hpp52 SpirvShader const *spirvShader);
66 SpirvShader const *const spirvShader; member in sw::VertexRoutine
DPixelRoutine.cpp30 SpirvShader const *spirvShader, in PixelRoutine() argument
32 : QuadRasterizer(state, spirvShader) in PixelRoutine()
36 if(spirvShader) in PixelRoutine()
38 spirvShader->emitProlog(&routine); in PixelRoutine()
60 const bool earlyDepthTest = !spirvShader || spirvShader->getModes().EarlyFragmentTests; in quad()
67 if(spirvShader) in quad()
77 …if(spirvShader->hasBuiltinInput(spv::BuiltInSampleId) || spirvShader->hasBuiltinInput(spv::BuiltIn… in quad()
84 …bool shaderContainsInterpolation = spirvShader && spirvShader->getUsedCapabilities().Interpolation… in quad()
85 …bool shaderContainsSampleQualifier = spirvShader && spirvShader->getModes().ContainsSampleQualifie… in quad()
185 if(spirvShader) in quad()
[all …]
DVertexProgram.hpp31 SpirvShader const *spirvShader,
DComputeProgram.hpp49 …ComputeProgram(vk::Device *device, SpirvShader const *spirvShader, vk::PipelineLayout const *pipel…
DPixelRoutine.hpp30 SpirvShader const *spirvShader,
/external/swiftshader/src/Device/
DQuadRasterizer.cpp25 QuadRasterizer::QuadRasterizer(const PixelProcessor::State &state, SpirvShader const *spirvShader) in QuadRasterizer() argument
27 , spirvShader{ spirvShader } in QuadRasterizer()
148 if(spirvShader) in rasterize()
152 if(spirvShader->inputs[interpolant].Type == SpirvShader::ATTRIBTYPE_UNUSED) in rasterize()
156 if(!spirvShader->inputs[interpolant].Flat) in rasterize()
253 …return state.depthTestActive || (spirvShader && spirvShader->hasBuiltinInput(spv::BuiltInFragCoord… in interpolateZ()
260 return spirvShader != nullptr; in interpolateW()
DQuadRasterizer.hpp28 QuadRasterizer(const PixelProcessor::State &state, SpirvShader const *spirvShader);
52 const SpirvShader *const spirvShader; member in sw::QuadRasterizer
/external/swiftshader/src/Vulkan/
DVkPipeline.cpp188 …::setShader(const VkShaderStageFlagBits &stage, const std::shared_ptr<sw::SpirvShader> spirvShader) in setShader() argument
194 vertexShader = spirvShader; in setShader()
199 fragmentShader = spirvShader; in setShader()
DVkPipeline.hpp114 … setShader(const VkShaderStageFlagBits &stage, const std::shared_ptr<sw::SpirvShader> spirvShader);