Home
last modified time | relevance | path

Searched refs:glFormat (Results 1 - 25 of 30) sorted by relevance

12

/third_party/vk-gl-cts/modules/gles2/functional/
H A Des2fReadPixelsTests.cpp66 void getFormatInfo (tcu::TextureFormat& format, GLint& glFormat, GLint& glType, int& pixelSize);
144 void ReadPixelsTest::getFormatInfo (tcu::TextureFormat& format, GLint& glFormat, GLint& glType, int& pixelSize) in getFormatInfo() argument
148 GLU_CHECK_CALL(glGetIntegerv(GL_IMPLEMENTATION_COLOR_READ_FORMAT, &glFormat)); in getFormatInfo()
151 if (glFormat != GL_RGBA && glFormat != GL_BGRA && glFormat != GL_RGB) in getFormatInfo()
152 TCU_THROW(NotSupportedError, ("Unsupported IMPLEMENTATION_COLOR_READ_FORMAT: " + de::toString(glu::getTextureFormatStr(glFormat))).c_str()); in getFormatInfo()
156 format = glu::mapGLTransferFormat(glFormat, glType); in getFormatInfo()
163 glFormat = GL_RGBA; in getFormatInfo()
178 GLint glFormat; in iterate() local
[all...]
H A Des2fNegativeTextureApiTests.cpp2017 const deInt32 glFormat = accepted[i]; in init()
2021 const tcu::CompressedTexFormat format = glu::mapGLCompressedTexFormat(glFormat); in init()
2031 glCompressedTexImage2D(GL_TEXTURE_2D, 0, glFormat, blockPixelSize.x(), blockPixelSize.y(), 0, blockSize, DE_NULL); in init()
2046 m_log << TestLog::Message << "Skipping unknown format: " << glFormat << TestLog::EndMessage; in init()
2067 const deInt32 glFormat = accepted[i]; in init()
2071 const tcu::CompressedTexFormat format = glu::mapGLCompressedTexFormat(glFormat); in init()
2081 glCompressedTexImage2D(GL_TEXTURE_2D, 0, glFormat, blockPixelSize.x(), blockPixelSize.y(), 0, blockSize, DE_NULL); in init()
2097 m_log << TestLog::Message << "Skipping unknown format: " << glFormat << TestLog::EndMessage; in init()
2118 const deInt32 glFormat = accepted[i]; in init()
2122 const tcu::CompressedTexFormat format = glu::mapGLCompressedTexFormat(glFormat); in init()
[all...]
/third_party/skia/src/gpu/
H A DGrBackendUtils.cpp36 GrGLFormat glFormat = format.asGLFormat(); in GrBackendFormatToCompressionType() local
37 switch (glFormat) { in GrBackendFormatToCompressionType()
113 GrGLFormat glFormat = format.asGLFormat(); in GrBackendFormatBytesPerBlock() local
114 return GrGLFormatBytesPerBlock(glFormat); in GrBackendFormatBytesPerBlock()
173 GrGLFormat glFormat = format.asGLFormat(); in GrBackendFormatStencilBits() local
174 return GrGLFormatStencilBits(glFormat); in GrBackendFormatStencilBits()
/third_party/skia/third_party/externals/angle2/src/libANGLE/renderer/null/
H A DFramebufferNULL.cpp117 const gl::InternalFormat &glFormat = gl::GetInternalFormatInfo(format, type); in readPixels() local
122 ANGLE_CHECK_GL_MATH(contextNull, glFormat.computeRowPitch(type, origArea.width, pack.alignment, in readPixels()
127 glFormat.computeSkipBytes(type, rowBytes, 0, pack, false, &skipBytes)); in readPixels()
133 pixels += leftClip * glFormat.pixelBytes + topClip * rowBytes; in readPixels()
138 memset(pixels, 42, glFormat.pixelBytes * area.width); in readPixels()
/third_party/skia/third_party/externals/dawn/src/dawn_native/opengl/
H A DTextureGL.cpp139 const GLFormat& glFormat = GetGLFormat(); in Texture() local
150 gl.TexStorage3D(mTarget, levels, glFormat.internalFormat, width, height, in Texture()
154 gl.TexStorage2DMultisample(mTarget, sampleCount, glFormat.internalFormat, in Texture()
157 gl.TexStorage2D(mTarget, levels, glFormat.internalFormat, width, height); in Texture()
164 gl.TexStorage3D(mTarget, levels, glFormat.internalFormat, width, height, in Texture()
351 const GLFormat& glFormat = GetGLFormat(); in ClearTexture() local
367 glFormat.format, glFormat.type, in ClearTexture()
553 const GLFormat& glFormat = ToBackend(GetDevice())->GetGLFormat(GetFormat()); in TextureView() local
554 gl.TextureView(mHandle, mTarget, textureGL->GetHandle(), glFormat in TextureView()
[all...]
H A DCommandBufferGL.cpp721 GLenum glFormat; in Execute() local
726 glFormat = format.format; in Execute()
731 glFormat = GL_DEPTH_COMPONENT; in Execute()
736 glFormat = GL_STENCIL_INDEX; in Execute()
755 copySize.height, glFormat, glType, offset); in Execute()
769 copySize.height, glFormat, glType, offset); in Execute()
/third_party/skia/third_party/externals/angle2/src/libANGLE/renderer/
H A DFormat.h27 GLenum glFormat,
131 GLenum glFormat, in Format()
154 glInternalFormat(glFormat), in Format()
130 Format(FormatID id, GLenum glFormat, GLenum fboFormat, rx::MipGenerationFunction mipGen, const rx::FastCopyFunctionMap &fastCopyFunctions, rx::PixelReadFunction colorRead, rx::PixelWriteFunction colorWrite, GLenum componentType, GLuint redBits, GLuint greenBits, GLuint blueBits, GLuint alphaBits, GLuint luminanceBits, GLuint depthBits, GLuint stencilBits, GLuint pixelBytes, GLuint componentAlignmentMask, bool isBlock, bool isFixed, bool isScaled, bool isSRGB, bool isYUV, gl::VertexAttribType vertexAttribType) Format() argument
/third_party/skia/third_party/externals/angle2/src/libANGLE/renderer/gl/
H A DFramebufferGL.cpp700 const gl::InternalFormat &glFormat = gl::GetInternalFormatInfo(readFormat, readType); in readPixels()
704 glFormat.computeRowPitch(readType, area.width, packState.alignment, in readPixels()
706 outPtr += leftClip * glFormat.pixelBytes + topClip * rowBytes; in readPixels()
1493 const gl::InternalFormat &glFormat = gl::GetInternalFormatInfo(format, type); in readPixelsRowByRow() local
1496 ANGLE_CHECK_GL_MATH(contextGL, glFormat.computeRowPitch(type, area.width, pack.alignment, in readPixelsRowByRow()
1500 glFormat.computeSkipBytes(type, rowBytes, 0, pack, false, &skipBytes)); in readPixelsRowByRow()
1505 glFormat.computePixelBytes(type), pixels); in readPixelsRowByRow()
1528 glFormat.computePixelBytes(type), pack, originalReadFormatPixels, workaround.Pixels()); in readPixelsRowByRow()
1548 const gl::InternalFormat &glFormat = gl::GetInternalFormatInfo(format, type); in readPixelsAllAtOnce() local
1551 ANGLE_CHECK_GL_MATH(contextGL, glFormat in readPixelsAllAtOnce()
[all...]
H A DTextureGL.cpp410 const gl::InternalFormat &glFormat = gl::GetInternalFormatInfo(format, type); in setSubImageRowByRowWorkaround() local
412 ANGLE_CHECK_GL_MATH(contextGL, glFormat.computeRowPitch(type, area.width, unpack.alignment, in setSubImageRowByRowWorkaround()
415 ANGLE_CHECK_GL_MATH(contextGL, glFormat.computeDepthPitch(area.height, unpack.imageHeight, in setSubImageRowByRowWorkaround()
420 ANGLE_CHECK_GL_MATH(contextGL, glFormat.computeSkipBytes(type, rowBytes, imageBytes, unpack, in setSubImageRowByRowWorkaround()
484 const gl::InternalFormat &glFormat = gl::GetInternalFormatInfo(format, type); in setSubImagePaddingWorkaround() local
486 ANGLE_CHECK_GL_MATH(contextGL, glFormat.computeRowPitch(type, area.width, unpack.alignment, in setSubImagePaddingWorkaround()
489 ANGLE_CHECK_GL_MATH(contextGL, glFormat.computeDepthPitch(area.height, unpack.imageHeight, in setSubImagePaddingWorkaround()
493 ANGLE_CHECK_GL_MATH(contextGL, glFormat.computeSkipBytes(type, rowBytes, imageBytes, unpack, in setSubImagePaddingWorkaround()
H A Drenderergl_utils.cpp2595 const gl::InternalFormat &glFormat = gl::GetInternalFormatInfo(format, type); in ShouldApplyLastRowPaddingWorkaround() local
2598 glFormat.computePackUnpackEndByte(type, size, state, is3D, &endByte)); in ShouldApplyLastRowPaddingWorkaround()
2600 ANGLE_CHECK_GL_MATH(contextGL, glFormat.computeRowPitch(type, size.width, state.alignment, in ShouldApplyLastRowPaddingWorkaround()
2603 CheckedNumeric<size_t> checkedPixelBytes = glFormat.computePixelBytes(type); in ShouldApplyLastRowPaddingWorkaround()
/third_party/skia/src/gpu/gl/
H A DGrGLUtil.h380 static constexpr GrGLFormat GrGLFormatFromGLEnum(GrGLenum glFormat) { in GrGLFormatFromGLEnum() argument
381 switch (glFormat) { in GrGLFormatFromGLEnum()
609 static constexpr const char* GrGLFormatToStr(GrGLenum glFormat) { in GrGLFormatToStr() argument
610 switch (glFormat) { in GrGLFormatToStr()
H A DGrGLGpu.cpp1522 GrGLFormat glFormat = format.asGLFormat(); in onCreateCompressedBackendTexture() local
1523 if (glFormat == GrGLFormat::kUnknown) { in onCreateCompressedBackendTexture()
1533 info.fFormat = GrGLFormatToEnum(glFormat); in onCreateCompressedBackendTexture()
1534 info.fID = this->createCompressedTexture2D(dimensions, compression, glFormat, in onCreateCompressedBackendTexture()
1560 GrGLFormat glFormat = format.asGLFormat(); in onUpdateCompressedBackendTexture() local
1561 if (glFormat == GrGLFormat::kUnknown) { in onUpdateCompressedBackendTexture()
1589 glFormat, in onUpdateCompressedBackendTexture()
3630 GrGLFormat glFormat = format.asGLFormat(); in onCreateBackendTexture() local
3631 if (glFormat == GrGLFormat::kUnknown) { in onCreateBackendTexture()
3641 SkASSERT(!GrGLFormatIsCompressed(glFormat)); in onCreateBackendTexture()
3696 GrGLFormat glFormat = GrGLFormatFromGLEnum(info.fFormat); onClearBackendTexture() local
[all...]
H A DGrGLCaps.cpp3277 GrGLenum glFormat = this->getRenderbufferInternalFormat(grGLFormat); in setupSampleCounts() local
3278 GR_GL_GetInternalformativ(gli, GR_GL_RENDERBUFFER, glFormat, in setupSampleCounts()
3282 GR_GL_GetInternalformativ(gli, GR_GL_RENDERBUFFER, glFormat, GR_GL_SAMPLES, in setupSampleCounts()
4692 GrGLFormat glFormat = format.asGLFormat(); in onAreColorTypeAndFormatCompatible() local
4693 const auto& info = this->getFormatInfo(glFormat); in onAreColorTypeAndFormatCompatible()
4760 GrGLFormat glFormat = format.asGLFormat(); in onGetReadSwizzle() local
4761 const auto& info = this->getFormatInfo(glFormat); in onGetReadSwizzle()
4769 (int)colorType, (int)glFormat); in onGetReadSwizzle()
4798 auto glFormat = format.asGLFormat(); in computeFormatKey() local
4799 return (uint64_t)(glFormat); in computeFormatKey()
[all...]
/third_party/vk-gl-cts/modules/gles31/functional/
H A Des31fFboTestUtil.hpp133 tcu::RGBA getFormatThreshold (const deUint32 glFormat);
H A Des31fCopyImageTests.cpp674 void genTexel (de::Random& rng, deUint32 glFormat, int texelBlockSize, const int texelCount, deUint8* buffer)
676 if (isFloatFormat(glFormat))
678 const tcu::TextureFormat format = glu::mapGLInternalFormat(glFormat);
694 else if (glu::isCompressedFormat(glFormat))
696 const tcu::CompressedTexFormat compressedFormat = glu::mapGLCompressedTexFormat(glFormat);
793 const deUint32 glFormat = getFormatForInternalFormat(format);
800 gl.texImage2D(glTarget, level, format, (glw::GLsizei)size.x(), (glw::GLsizei)size.y(), 0, glFormat, glType, data);
805 gl.texImage3D(glTarget, level, format, (glw::GLsizei)size.x(), (glw::GLsizei)size.y(), (glw::GLsizei)size.z(), 0, glFormat, glType, data);
H A Des31fFboTestUtil.cpp626 tcu::RGBA getFormatThreshold (deUint32 glFormat) in getFormatThreshold() argument
628 const tcu::TextureFormat format = glu::mapGLInternalFormat(glFormat); in getFormatThreshold()
/third_party/skia/third_party/externals/dawn/src/tests/white_box/
H A DEGLImageWrappingTests.cpp298 GLenum glFormat, in DoClearTest()
344 gl.ReadPixels(0, 0, 1, 1, glFormat, glType, result.data()); in DoClearTest()
295 DoClearTest(EGLImage eglImage, GLuint texture, wgpu::TextureFormat format, GLenum glFormat, GLenum glType, void* data, size_t dataSize) DoClearTest() argument
/third_party/skia/gm/
H A Dexoticformats.cpp75 uint32_t glFormat = get_uint(header, 24); in load_ktx() local
86 if (glType != 0 || glFormat != 0) { // only care about compressed data for now in load_ktx()
/third_party/vk-gl-cts/modules/gles3/functional/
H A Des3fFboTestUtil.hpp223 tcu::RGBA getFormatThreshold (const deUint32 glFormat);
/third_party/skia/third_party/externals/angle2/src/libANGLE/renderer/vulkan/
H A Dvk_caps_utils.cpp50 for (GLenum glFormat : optionalSizedFormats) in FormatReinterpretationSupported()
52 const gl::TextureCaps &baseCaps = rendererVk->getNativeTextureCaps().get(glFormat); in FormatReinterpretationSupported()
55 const Format &vkFormat = rendererVk->getFormat(glFormat); in FormatReinterpretationSupported()
/third_party/skia/third_party/externals/angle2/src/libANGLE/capture/
H A Dframe_capture_utils.cpp219 void SerializeFormat(JsonSerializer *json, GLenum glFormat) in SerializeFormat() argument
222 gl::GLenumToString(gl::GLenumGroup::InternalFormat, glFormat)); in SerializeFormat()
1203 GLenum glFormat = format.format; in SerializeTextureData() local
1235 index.getLevelIndex(), glFormat, glType, in SerializeTextureData()
/third_party/skia/third_party/externals/angle2/src/libANGLE/renderer/d3d/
H A DRendererD3D.h191 gl::Format *glFormat,
/third_party/skia/third_party/externals/angle2/src/libANGLE/renderer/d3d/d3d9/
H A DRenderer9.h83 gl::Format *glFormat,
/third_party/vk-gl-cts/external/openglcts/modules/gles2/
H A Des2cTexture3DTests.cpp178 int glFormat = glu::getGLFormat(format); in getSupportedCompressedFormats() local
179 if (contextInfo.isCompressedTextureFormatSupported(glFormat)) in getSupportedCompressedFormats()
180 formatsSet.insert(glFormat); in getSupportedCompressedFormats()
/third_party/skia/third_party/externals/angle2/src/libANGLE/renderer/d3d/d3d11/
H A DRenderer11.h111 gl::Format *glFormat,

Completed in 48 milliseconds

12