Home
last modified time | relevance | path

Searched refs:FormatID (Results 1 – 25 of 98) sorted by relevance

1234

/third_party/skia/third_party/externals/angle2/src/libANGLE/renderer/vulkan/
Dvk_format_table_autogen.cpp26 case angle::FormatID::A16_FLOAT: in initialize()
28 mActualSampleOnlyImageFormatID = angle::FormatID::R16_FLOAT; in initialize()
33 case angle::FormatID::A1R5G5B5_UNORM: in initialize()
35 mActualSampleOnlyImageFormatID = angle::FormatID::A1R5G5B5_UNORM; in initialize()
37 mActualBufferFormatID = angle::FormatID::A1R5G5B5_UNORM; in initialize()
43 case angle::FormatID::A2R10G10B10_SINT_VERTEX: in initialize()
45 mActualSampleOnlyImageFormatID = angle::FormatID::NONE; in initialize()
47 mActualBufferFormatID = angle::FormatID::R16G16B16A16_FLOAT; in initialize()
53 case angle::FormatID::A2R10G10B10_SNORM_VERTEX: in initialize()
55 mActualSampleOnlyImageFormatID = angle::FormatID::NONE; in initialize()
[all …]
Dvk_mandatory_format_support_table_autogen.cpp44 {FormatID::R8G8_USCALED, {0, 0, 0}},
45 {FormatID::D32_FLOAT_S8X24_UINT, {0, 0, 0}},
46 {FormatID::ETC2_R8G8B8_SRGB_BLOCK, {0, 0, 0}},
47 {FormatID::R8G8_UNORM_SRGB, {0, 0, 0}},
48 {FormatID::R32G32B32A32_SINT,
51 {FormatID::ASTC_10x8_SRGB_BLOCK, {0, 0, 0}},
52 {FormatID::R16G16B16_USCALED, {0, 0, 0}},
53 {FormatID::BC4_RED_SNORM_BLOCK, {0, 0, 0}},
54 {FormatID::R16G16B16_SNORM, {0, 0, 0}},
55 {FormatID::S8_UINT, {0, 0, 0}},
[all …]
Dvk_format_utils.h45 angle::FormatID format;
51 angle::FormatID format;
57 VkFormat GetVkFormatFromFormatID(angle::FormatID actualFormatID);
58 angle::FormatID GetFormatIDFromVkFormat(VkFormat vkFormat);
61 size_t GetImageCopyBufferAlignment(angle::FormatID actualFormatID);
62 size_t GetValidImageCopyBufferAlignment(angle::FormatID intendedFormatID,
63 angle::FormatID actualFormatID);
67 bool HasEmulatedImageFormat(angle::FormatID intendedFormatID, angle::FormatID actualFormatID);
81 angle::FormatID getIntendedFormatID() const { return mIntendedFormatID; } in getIntendedFormatID()
90 angle::FormatID getActualRenderableImageFormatID() const in getActualRenderableImageFormatID()
[all …]
Dvk_format_utils.cpp24 angle::FormatID formatID, in FillTextureFormatCaps()
68 bool HasFullBufferFormatSupport(RendererVk *renderer, angle::FormatID formatID) in HasFullBufferFormatSupport()
79 using SupportTest = bool (*)(RendererVk *renderer, angle::FormatID formatID);
93 ASSERT(info[i].format != angle::FormatID::NONE); in FindSupportedFormat()
104 ASSERT(info[last].format != angle::FormatID::NONE); in FindSupportedFormat()
109 bool HasNonFilterableTextureFormatSupport(RendererVk *renderer, angle::FormatID formatID) in HasNonFilterableTextureFormatSupport()
124 : mIntendedFormatID(angle::FormatID::NONE), in Format()
126 mActualSampleOnlyImageFormatID(angle::FormatID::NONE), in Format()
127 mActualRenderableImageFormatID(angle::FormatID::NONE), in Format()
128 mActualBufferFormatID(angle::FormatID::NONE), in Format()
[all …]
DRendererVk.h223 const vk::Format &getFormat(angle::FormatID formatID) const { return mFormatTable[formatID]; } in getFormat()
246 bool hasLinearImageFormatFeatureBits(angle::FormatID format,
249 angle::FormatID format,
251 VkFormatFeatureFlags getImageFormatFeatureBits(angle::FormatID format,
253 bool hasImageFormatFeatureBits(angle::FormatID format,
255 bool hasBufferFormatFeatureBits(angle::FormatID format,
420 bool haveSameFormatFeatureBits(angle::FormatID formatID1, angle::FormatID formatID2) const;
519 VkFormatFeatureFlags getFormatFeatureBits(angle::FormatID formatID,
523 bool hasFormatFeatureBits(angle::FormatID formatID,
Dvk_helpers.h1458 angle::FormatID formatID,
1463 angle::FormatID srcFormatID,
1465 angle::FormatID dstFormatID,
1506 angle::FormatID intendedFormatID,
1507 angle::FormatID actualFormatID,
1561 angle::FormatID imageViewFormat) const;
1578 angle::FormatID intendedFormatID,
1579 angle::FormatID actualFormatID,
1591 angle::FormatID intendedFormatID,
1592 angle::FormatID actualFormatID,
[all …]
/third_party/skia/third_party/externals/angle2/src/libANGLE/renderer/
DFormat_table_autogen.cpp20 static constexpr rx::FastCopyFunctionMap::Entry BGRAEntry = {angle::FormatID::R8G8B8A8_UNORM,
27 …{ FormatID::NONE, GL_NONE, GL_NONE, nullptr, NoCopyFunctions, nullptr, nullptr, GL_NONE, 0, 0, 0, …
28 …{ FormatID::D16_UNORM, GL_DEPTH_COMPONENT16, GL_DEPTH_COMPONENT16, nullptr, NoCopyFunctions, ReadD…
29 …{ FormatID::D24_UNORM_S8_UINT, GL_DEPTH24_STENCIL8, GL_DEPTH24_STENCIL8, nullptr, NoCopyFunctions,…
30 …{ FormatID::D24_UNORM_X8_UINT, GL_DEPTH_COMPONENT24, GL_DEPTH_COMPONENT24, nullptr, NoCopyFunction…
31 …{ FormatID::D32_FLOAT, GL_DEPTH_COMPONENT32F, GL_DEPTH_COMPONENT32F, nullptr, NoCopyFunctions, Rea…
32 …{ FormatID::D32_FLOAT_S8X24_UINT, GL_DEPTH32F_STENCIL8, GL_DEPTH32F_STENCIL8, nullptr, NoCopyFunct…
33 …{ FormatID::D32_UNORM, GL_DEPTH_COMPONENT32_OES, GL_DEPTH_COMPONENT32_OES, nullptr, NoCopyFunction…
34 …{ FormatID::S8_UINT, GL_STENCIL_INDEX8, GL_STENCIL_INDEX8, nullptr, NoCopyFunctions, ReadDepthSten…
35 …{ FormatID::A16_FLOAT, GL_ALPHA16F_EXT, GL_ALPHA16F_EXT, GenerateMip<A16F>, NoCopyFunctions, ReadC…
[all …]
Ddxgi_format_map_autogen.cpp279 return Format::Get(FormatID::A8_UNORM); in GetFormat()
285 return Format::Get(FormatID::B4G4R4A4_UNORM); in GetFormat()
287 return Format::Get(FormatID::B5G5R5A1_UNORM); in GetFormat()
289 return Format::Get(FormatID::B5G6R5_UNORM); in GetFormat()
291 return Format::Get(FormatID::B8G8R8A8_TYPELESS); in GetFormat()
293 return Format::Get(FormatID::B8G8R8A8_UNORM); in GetFormat()
295 return Format::Get(FormatID::B8G8R8A8_UNORM_SRGB); in GetFormat()
299 return Format::Get(FormatID::B8G8R8X8_UNORM); in GetFormat()
305 return Format::Get(FormatID::BC1_RGBA_UNORM_BLOCK); in GetFormat()
307 return Format::Get(FormatID::BC1_RGBA_UNORM_SRGB_BLOCK); in GetFormat()
[all …]
Dd3d_format.cpp33 formatID(angle::FormatID::NONE) in D3DFormat()
46 FormatID formatID) in D3DFormat()
64 static const D3DFormat info(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, FormatID::NONE); in GetD3DFormatInfo()
70 static const D3DFormat info(32, 1, 1, 0, 0, 0, 0, 0, 24, 8, FormatID::D24_UNORM_S8_UINT); in GetD3DFormatInfo()
78 static const D3DFormat info(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, FormatID::NONE); in GetD3DFormatInfo()
84 static const D3DFormat info(8, 1, 1, 0, 0, 0, 0, 8, 0, 0, FormatID::L8_UNORM); in GetD3DFormatInfo()
89 static const D3DFormat info(8, 1, 1, 0, 0, 0, 8, 0, 0, 0, FormatID::A8_UNORM); in GetD3DFormatInfo()
94 static const D3DFormat info(16, 1, 1, 0, 0, 0, 8, 8, 0, 0, FormatID::L8A8_UNORM); in GetD3DFormatInfo()
100 static const D3DFormat info(16, 1, 1, 4, 4, 4, 4, 0, 0, 0, FormatID::B4G4R4A4_UNORM); in GetD3DFormatInfo()
105 static const D3DFormat info(16, 1, 1, 5, 5, 5, 1, 0, 0, 0, FormatID::B5G5R5A1_UNORM); in GetD3DFormatInfo()
[all …]
Drenderer_utils.cpp433 bool FastCopyFunctionMap::has(angle::FormatID formatID) const in has()
438 PixelCopyFunction FastCopyFunctionMap::get(angle::FormatID formatID) const in get()
859 angle::FormatID angleFormatID = angle::Format::InternalFormatToID(sizedInternalFormat); in GetFormatFromFormatType()
1313 angle::FormatID ConvertToSRGB(angle::FormatID formatID) in ConvertToSRGB()
1317 case angle::FormatID::R8_UNORM: in ConvertToSRGB()
1318 return angle::FormatID::R8_UNORM_SRGB; in ConvertToSRGB()
1319 case angle::FormatID::R8G8_UNORM: in ConvertToSRGB()
1320 return angle::FormatID::R8G8_UNORM_SRGB; in ConvertToSRGB()
1321 case angle::FormatID::R8G8B8_UNORM: in ConvertToSRGB()
1322 return angle::FormatID::R8G8B8_UNORM_SRGB; in ConvertToSRGB()
[all …]
Dload_functions_table_autogen.cpp3253 LoadFunctionMap GetLoadFunctionsMap(GLenum internalFormat, FormatID angleFormat) in GetLoadFunctionsMap()
3262 case FormatID::A1R5G5B5_UNORM: in GetLoadFunctionsMap()
3273 case FormatID::R16G16B16A16_FLOAT: in GetLoadFunctionsMap()
3275 case FormatID::R32G32B32A32_FLOAT: in GetLoadFunctionsMap()
3285 case FormatID::R16_FLOAT: in GetLoadFunctionsMap()
3295 case FormatID::R32_FLOAT: in GetLoadFunctionsMap()
3305 case FormatID::A8_UNORM: in GetLoadFunctionsMap()
3307 case FormatID::R8G8B8A8_UNORM: in GetLoadFunctionsMap()
3309 case FormatID::R8_UNORM: in GetLoadFunctionsMap()
3320 case FormatID::B10G10R10A2_UNORM: in GetLoadFunctionsMap()
[all …]
DFormat.h20 enum class FormatID; variable
26 inline constexpr Format(FormatID id,
50 static const Format &Get(FormatID id) { return gFormatInfoTable[static_cast<int>(id)]; } in Get()
52 static FormatID InternalFormatToID(GLenum internalFormat);
71 FormatID id;
130 constexpr Format::Format(FormatID id, in Format()
199 return id == FormatID::B8G8R8A8_UNORM || id == FormatID::B8G8R8A8_UNORM_SRGB || in isBGRA()
200 id == FormatID::B8G8R8A8_TYPELESS || id == FormatID::B8G8R8A8_TYPELESS_SRGB; in isBGRA()
234 using FormatMap = PackedEnumMap<FormatID, T, kNumANGLEFormats>;
Dload_texture_border_functions_table_autogen.cpp49 FormatID angleFormat) in GetLoadTextureBorderFunctionsMap()
57 case FormatID::R8_UNORM: in GetLoadTextureBorderFunctionsMap()
67 case FormatID::R8G8_UNORM: in GetLoadTextureBorderFunctionsMap()
Drenderer_utils.h28 enum class FormatID; variable
93 angle::FormatID formatID;
101 bool has(angle::FormatID formatID) const;
102 PixelCopyFunction get(angle::FormatID formatID) const;
448 angle::FormatID ConvertToSRGB(angle::FormatID formatID);
449 angle::FormatID ConvertToLinear(angle::FormatID formatID);
450 bool IsOverridableLinearFormat(angle::FormatID formatID);
/third_party/skia/third_party/externals/angle2/src/libANGLE/renderer/metal/
Dmtl_format_table_autogen.mm28 angle::FormatID Format::MetalToAngleFormatID(MTLPixelFormat formatMtl)
34 return angle::FormatID::A8_UNORM;
36 return angle::FormatID::B10G10R10A2_UNORM;
38 return angle::FormatID::B8G8R8A8_UNORM;
40 return angle::FormatID::B8G8R8A8_UNORM_SRGB;
42 return angle::FormatID::D32_FLOAT;
44 return angle::FormatID::D32_FLOAT_S8X24_UINT;
46 return angle::FormatID::NONE;
48 return angle::FormatID::R10G10B10A2_UINT;
50 return angle::FormatID::R10G10B10A2_UNORM;
[all …]
Dmtl_format_utils.h31 LoadFunctionMap GetLoadFunctionsMap(GLenum internalFormat, angle::FormatID angleFormat);
45 angle::FormatID actualFormatId = angle::FormatID::NONE;
46 angle::FormatID intendedFormatId = angle::FormatID::NONE;
72 static angle::FormatID MetalToAngleFormatID(MTLPixelFormat formatMtl);
91 bool needConversion(angle::FormatID srcFormatId) const;
104 void init(const DisplayMtl *display, angle::FormatID intendedFormatId);
124 void init(angle::FormatID angleFormatId, bool tightlyPacked = false);
141 const Format &getPixelFormat(angle::FormatID angleFormatId) const;
148 const VertexFormat &getVertexFormat(angle::FormatID angleFormatId, bool tightlyPacked) const;
DIOSurfaceSurfaceMtl.mm41 angle::FormatID nativeAngleFormatId;
47 {GL_RED, GL_UNSIGNED_BYTE, 1, angle::FormatID::R8_UNORM},
48 {GL_RED, GL_UNSIGNED_SHORT, 2, angle::FormatID::R16_UNORM},
49 {GL_RG, GL_UNSIGNED_BYTE, 2, angle::FormatID::R8G8_UNORM},
50 {GL_RG, GL_UNSIGNED_SHORT, 4, angle::FormatID::R16G16_UNORM},
51 {GL_RGB, GL_UNSIGNED_BYTE, 4, angle::FormatID::B8G8R8A8_UNORM},
52 {GL_BGRA_EXT, GL_UNSIGNED_BYTE, 4, angle::FormatID::B8G8R8A8_UNORM},
53 {GL_RGBA, GL_HALF_FLOAT, 8, angle::FormatID::R16G16B16A16_FLOAT},
54 {GL_RGB10_A2, GL_UNSIGNED_INT_2_10_10_10_REV, 4, angle::FormatID::B10G10R10A2_UNORM},
167 contextMtl->getPixelFormat(angle::FormatID::R8G8B8_UNORM);
Dmtl_format_utils.mm86 LoadFunctionMap GetLoadFunctionsMap(GLenum internalFormat, angle::FormatID angleFormat)
89 angleFormat == angle::FormatID::D32_FLOAT_S8X24_UINT)
99 bool OverrideTextureCaps(const DisplayMtl *display, angle::FormatID formatId, gl::TextureCaps *caps)
107 case angle::FormatID::D16_UNORM:
108 case angle::FormatID::D24_UNORM_S8_UINT:
109 case angle::FormatID::D32_FLOAT_S8X24_UINT:
110 case angle::FormatID::D32_FLOAT:
111 case angle::FormatID::D32_UNORM:
133 angle::FormatID angleFormatId =
213 bool Format::needConversion(angle::FormatID srcFormatId) const
[all …]
/third_party/skia/third_party/externals/angle2/src/libANGLE/renderer/d3d/d3d11/
Dformatutils11.cpp211 const VertexFormat *GetVertexFormatInfo_FL_9_3(angle::FormatID vertexFormatID) in GetVertexFormatInfo_FL_9_3()
220 case angle::FormatID::R8_SSCALED: in GetVertexFormatInfo_FL_9_3()
226 case angle::FormatID::R8G8_SSCALED: in GetVertexFormatInfo_FL_9_3()
232 case angle::FormatID::R8G8B8_SSCALED: in GetVertexFormatInfo_FL_9_3()
238 case angle::FormatID::R8G8B8A8_SSCALED: in GetVertexFormatInfo_FL_9_3()
246 case angle::FormatID::R8_SNORM: in GetVertexFormatInfo_FL_9_3()
252 case angle::FormatID::R8G8_SNORM: in GetVertexFormatInfo_FL_9_3()
258 case angle::FormatID::R8G8B8_SNORM: in GetVertexFormatInfo_FL_9_3()
264 case angle::FormatID::R8G8B8A8_SNORM: in GetVertexFormatInfo_FL_9_3()
274 case angle::FormatID::R8_USCALED: in GetVertexFormatInfo_FL_9_3()
[all …]
Dtexture_format_table_autogen.cpp39 angle::FormatID::R16G16B16A16_FLOAT, in Get()
53 angle::FormatID::R32G32B32A32_FLOAT, in Get()
69 angle::FormatID::A8_UNORM, in Get()
83 angle::FormatID::R8G8B8A8_UNORM, in Get()
98 angle::FormatID::B10G10R10A2_UNORM, in Get()
114 angle::FormatID::B5G6R5_UNORM, in Get()
128 angle::FormatID::R8G8B8A8_UNORM, in Get()
143 angle::FormatID::B8G8R8A8_UNORM, in Get()
157 angle::FormatID::B8G8R8A8_UNORM, in Get()
171 angle::FormatID::B8G8R8A8_UNORM, in Get()
[all …]
Dtexture_format_table.h37 angle::FormatID formatID,
54 angle::FormatID formatID;
71 formatID(angle::FormatID::NONE), in Format()
83 angle::FormatID formatID, in Format()
/third_party/skia/third_party/externals/angle2/src/libANGLE/
Dformatutils.cpp1940 angle::FormatID GetVertexFormatID(VertexAttribType type, in GetVertexFormatID()
1952 return angle::FormatID::R8_SINT; in GetVertexFormatID()
1954 return angle::FormatID::R8_SNORM; in GetVertexFormatID()
1955 return angle::FormatID::R8_SSCALED; in GetVertexFormatID()
1958 return angle::FormatID::R8G8_SINT; in GetVertexFormatID()
1960 return angle::FormatID::R8G8_SNORM; in GetVertexFormatID()
1961 return angle::FormatID::R8G8_SSCALED; in GetVertexFormatID()
1964 return angle::FormatID::R8G8B8_SINT; in GetVertexFormatID()
1966 return angle::FormatID::R8G8B8_SNORM; in GetVertexFormatID()
1967 return angle::FormatID::R8G8B8_SSCALED; in GetVertexFormatID()
[all …]
Dformatutils.h341 typedef std::vector<angle::FormatID> InputLayout;
353 angle::FormatID GetVertexFormatID(VertexAttribType type,
358 angle::FormatID GetVertexFormatID(const VertexAttribute &attrib, VertexAttribType currentValueType);
359 angle::FormatID GetCurrentValueFormatID(VertexAttribType currentValueType);
360 const VertexFormat &GetVertexFormatFromID(angle::FormatID vertexFormatID);
361 size_t GetVertexFormatSize(angle::FormatID vertexFormatID);
362 angle::FormatID ConvertFormatSignedness(const angle::Format &format);
/third_party/skia/third_party/externals/angle2/src/libANGLE/renderer/metal/shaders/
Dmtl_default_shaders_src_autogen.inc1478 namespace FormatID
2885FormatID::R5G6B5_UNORM: { auto color = readR5G6B5_UNORM(bufferOffset, buffer); textureWrite(gIndic…
2899FormatID::R8_SINT: { auto color = readR8_SINT(bufferOffset, buffer); textureWrite(gIndices, option…
2913FormatID::R8_UINT: { auto color = readR8_UINT(bufferOffset, buffer); textureWrite(gIndices, option…
2928FormatID::R5G6B5_UNORM: { auto color = textureRead(gIndices, options, srcTexture2d, srcTexture2dAr…
2942FormatID::R8_SINT: { auto color = textureRead(gIndices, options, srcTexture2d, srcTexture2dArray, …
2956FormatID::R8_UINT: { auto color = textureRead(gIndices, options, srcTexture2d, srcTexture2dArray, …
3020FormatID::R8_UNORM: { auto data = readR8_UNORM(bufferOffset, srcBuffer); writeFloatVertex(options,…
/third_party/skia/third_party/externals/angle2/src/libANGLE/renderer/d3d/
DSurfaceD3D.cpp112 if (mColorFormat->id != angle::FormatID::R8G8B8A8_TYPELESS && in initialize()
113 mColorFormat->id != angle::FormatID::B8G8R8A8_TYPELESS) in initialize()
119 if (mColorFormat->id == angle::FormatID::R8G8B8A8_TYPELESS) in initialize()
125 mColorFormat = &angle::Format::Get(angle::FormatID::R8G8B8A8_TYPELESS_SRGB); in initialize()
128 if (mColorFormat->id == angle::FormatID::B8G8R8A8_TYPELESS) in initialize()
134 mColorFormat = &angle::Format::Get(angle::FormatID::B8G8R8A8_TYPELESS_SRGB); in initialize()

1234