Lines Matching refs:SIMD
89 routine.fragCoord[0] = SIMD::Float(Float(x)) + SIMD::Float(x0, x1, x0, x1); in setBuiltins()
90 routine.fragCoord[1] = SIMD::Float(Float(y)) + SIMD::Float(y0, y0, y1, y1); in setBuiltins()
94 routine.invocationsPerSubgroup = SIMD::Width; in setBuiltins()
96 routine.windowSpacePosition[0] = x + SIMD::Int(0, 1, 0, 1); in setBuiltins()
97 routine.windowSpacePosition[1] = y + SIMD::Int(0, 0, 1, 1); in setBuiltins()
102 …SIMD::Float pointSizeInv = SIMD::Float(*Pointer<Float>(primitive + OFFSET(Primitive, pointSizeInv)… in setBuiltins()
103 …routine.pointCoord[0] = SIMD::Float(0.5f) + pointSizeInv * (((SIMD::Float(Float(x)) + SIMD::Float(… in setBuiltins()
104 …routine.pointCoord[1] = SIMD::Float(0.5f) + pointSizeInv * (((SIMD::Float(Float(y)) + SIMD::Float(… in setBuiltins()
106 …spv::BuiltInViewIndex, [&](const SpirvShader::BuiltinMapping &builtin, Array<SIMD::Float> &value) { in setBuiltins()
108 value[builtin.FirstComponent] = As<SIMD::Float>(SIMD::Int(routine.viewID)); in setBuiltins()
111 …spv::BuiltInFragCoord, [&](const SpirvShader::BuiltinMapping &builtin, Array<SIMD::Float> &value) { in setBuiltins()
119 …pv::BuiltInPointCoord, [&](const SpirvShader::BuiltinMapping &builtin, Array<SIMD::Float> &value) { in setBuiltins()
125 …::BuiltInSubgroupSize, [&](const SpirvShader::BuiltinMapping &builtin, Array<SIMD::Float> &value) { in setBuiltins()
127 value[builtin.FirstComponent] = As<SIMD::Float>(SIMD::Int(SIMD::Width)); in setBuiltins()
130 …iltInHelperInvocation, [&](const SpirvShader::BuiltinMapping &builtin, Array<SIMD::Float> &value) { in setBuiltins()
132 value[builtin.FirstComponent] = As<SIMD::Float>(routine.helperInvocation); in setBuiltins()
157 static_assert(SIMD::Width == 4, "Expects SIMD width to be 4"); in applyShader()
177 As<SIMD::Float>(SIMD::Int((sampleId >= 0) ? sampleId : 0)); in applyShader()
184 …SIMD::Float(((sampleId >= 0) && (state.multiSampleCount > 1)) ? Constants::VkSampleLocations4[samp… in applyShader()
186 …SIMD::Float(((sampleId >= 0) && (state.multiSampleCount > 1)) ? Constants::VkSampleLocations4[samp… in applyShader()
191 auto activeLaneMask = SIMD::Int(0xFFFFFFFF); in applyShader()
227 …auto outputSampleMask = As<SIMD::Int>(routine.getVariable(it->second.Id)[it->second.FirstComponent… in applyShader()
231 cMask[i] &= SignMask(CmpNEQ(outputSampleMask & SIMD::Int(1 << i), SIMD::Int(0))); in applyShader()