Lines Matching defs:const

69 static tcu::Vector<T, 4> castVectorSaturate (const tcu::Vec4& in)
77 static string genTexFragmentShader (const vector<glu::DataType>& samplerTypes, glu::DataType outputType)
79 const char* precision = "highp";
116 static sglr::pdec::ShaderProgramDeclaration genTexture2DShaderDecl (const DataTypes& samplerTypes, glu::DataType outputType)
150 Texture2DShader::Texture2DShader (const DataTypes& samplerTypes, glu::DataType outputType, const Vec4& outScale, const Vec4& outBias)
172 void Texture2DShader::setTexScaleBias (int inputNdx, const Vec4& scale, const Vec4& bias)
178 void Texture2DShader::setOutScaleBias (const Vec4& scale, const Vec4& bias)
184 void Texture2DShader::setUniforms (sglr::Context& gl, deUint32 program) const
203 void Texture2DShader::shadeVertices (const rr::VertexAttrib* inputs, rr::VertexPacket* const* packets, const int numPackets) const
214 void Texture2DShader::shadeFragments (rr::FragmentPacket* packets, const int numPackets, const rr::FragmentShadingContext& context) const
216 const tcu::Vec4 outScale (m_uniforms[0].value.f4);
217 const tcu::Vec4 outBias (m_uniforms[1].value.f4);
227 const tcu::Vec4 coord = rr::readTriangleVarying<float>(packets[packetNdx], context, 0, fragNdx);
238 const sglr::rc::Texture2D* tex = m_uniforms[2 + ndx*3].sampler.tex2D;
239 const tcu::Vec4 scale (m_uniforms[2 + ndx*3 + 1].value.f4);
240 const tcu::Vec4 bias (m_uniforms[2 + ndx*3 + 2].value.f4);
252 const tcu::Vec4 color = colors[fragNdx] * outScale + outBias;
253 const tcu::IVec4 icolor = castVectorSaturate<deInt32>(color);
254 const tcu::UVec4 uicolor = castVectorSaturate<deUint32>(color);
322 static const float s_cubeTransforms[][3*3] =
353 void TextureCubeArrayShader::setTexScaleBias (const Vec4& scale, const Vec4& bias)
359 void TextureCubeArrayShader::setUniforms (sglr::Context& gl, deUint32 program) const
370 void TextureCubeArrayShader::shadeVertices (const rr::VertexAttrib* inputs, rr::VertexPacket* const* packets, const int numPackets) const
377 const tcu::Vec2 a_coord = rr::readVertexAttribFloat(inputs[1], packet.instanceNdx, packet.vertexNdx).xy();
378 const tcu::Vec3 v_coord = texCoordMat * tcu::Vec3(a_coord.x(), a_coord.y(), 1.0f);
385 void TextureCubeArrayShader::shadeFragments (rr::FragmentPacket* packets, const int numPackets, const rr::FragmentShadingContext& context) const
387 const tcu::Vec4 texScale (m_uniforms[2].value.f4);
388 const tcu::Vec4 texBias (m_uniforms[3].value.f4);
395 const sglr::rc::TextureCubeArray* tex = m_uniforms[1].sampler.texCubeArray;
399 const tcu::Vec4 coord = rr::readTriangleVarying<float>(packets[packetNdx], context, 0, fragNdx);
407 const tcu::Vec4 color = colors[fragNdx] * texScale + texBias;
408 const tcu::IVec4 icolor = castVectorSaturate<deInt32>(color);
409 const tcu::UVec4 uicolor = castVectorSaturate<deUint32>(color);
420 void clearColorBuffer (sglr::Context& ctx, const tcu::TextureFormat& format, const tcu::Vec4& value)
422 const tcu::TextureChannelClass fmtClass = tcu::getTextureChannelClass(format.type);
445 void readPixels (sglr::Context& ctx, tcu::Surface& dst, int x, int y, int width, int height, const tcu::TextureFormat& format, const tcu::Vec4& scale, const tcu::Vec4& bias)
466 static const char* getFboIncompleteReasonName (deUint32 reason)
479 FboIncompleteException::FboIncompleteException (deUint32 reason, const char* file, int line)
485 const char* getFormatName (deUint32 format)
553 glu::DataType getFragmentOutputType (const tcu::TextureFormat& format)
574 tcu::TextureFormat getFramebufferReadFormat (const tcu::TextureFormat& format)
606 const int clampedBits = de::clamp<int>(srcBits, 0, 8);
607 const int srcMaxValue = de::max((1<<clampedBits) - 1, 1);
608 const int error = int(deFloatCeil(255.0f * 2.0f / float(srcMaxValue)));
616 tcu::RGBA getFormatThreshold (const tcu::TextureFormat& format)
618 const tcu::IVec4 bits = tcu::getTextureFormatBitDepth(format);
628 const tcu::TextureFormat format = glu::mapGLInternalFormat(glFormat);