Home
last modified time | relevance | path

Searched refs:VertexFormat (Results 1 – 25 of 70) sorted by relevance

123

/third_party/skia/third_party/externals/tint/src/transform/
Dvertex_pulling_test.cc91 {{15, VertexStepMode::kVertex, {{VertexFormat::kFloat32, 0, 0}}}}}; in TEST_F()
160 {{4, VertexStepMode::kVertex, {{VertexFormat::kFloat32, 0, 0}}}}}; in TEST_F()
199 {{4, VertexStepMode::kInstance, {{VertexFormat::kFloat32, 0, 0}}}}}; in TEST_F()
238 {{4, VertexStepMode::kVertex, {{VertexFormat::kFloat32, 0, 0}}}}}; in TEST_F()
287 {{4, VertexStepMode::kVertex, {{VertexFormat::kFloat32, 0, 0}}}}}; in TEST_F()
339 {{VertexFormat::kFloat32, 0, 0}}, in TEST_F()
344 {{VertexFormat::kFloat32, 0, 1}}, in TEST_F()
419 {{VertexFormat::kFloat32, 0, 0}}, in TEST_F()
424 {{VertexFormat::kFloat32, 0, 1}}, in TEST_F()
496 {{VertexFormat::kFloat32, 0, 0}}, in TEST_F()
[all …]
Dvertex_pulling.cc68 std::ostream& operator<<(std::ostream& out, VertexFormat format) { in operator <<()
70 case VertexFormat::kUint8x2: in operator <<()
72 case VertexFormat::kUint8x4: in operator <<()
74 case VertexFormat::kSint8x2: in operator <<()
76 case VertexFormat::kSint8x4: in operator <<()
78 case VertexFormat::kUnorm8x2: in operator <<()
80 case VertexFormat::kUnorm8x4: in operator <<()
82 case VertexFormat::kSnorm8x2: in operator <<()
84 case VertexFormat::kSnorm8x4: in operator <<()
86 case VertexFormat::kUint16x2: in operator <<()
[all …]
Dvertex_pulling.h29 enum class VertexFormat { enum
71 VertexFormat format;
/third_party/skia/third_party/externals/dawn/src/tests/end2end/
DVertexFormatTests.cpp60 bool IsNormalizedFormat(wgpu::VertexFormat format) { in IsNormalizedFormat()
62 case wgpu::VertexFormat::Unorm8x2: in IsNormalizedFormat()
63 case wgpu::VertexFormat::Unorm8x4: in IsNormalizedFormat()
64 case wgpu::VertexFormat::Snorm8x2: in IsNormalizedFormat()
65 case wgpu::VertexFormat::Snorm8x4: in IsNormalizedFormat()
66 case wgpu::VertexFormat::Unorm16x2: in IsNormalizedFormat()
67 case wgpu::VertexFormat::Unorm16x4: in IsNormalizedFormat()
68 case wgpu::VertexFormat::Snorm16x2: in IsNormalizedFormat()
69 case wgpu::VertexFormat::Snorm16x4: in IsNormalizedFormat()
76 bool IsUnsignedFormat(wgpu::VertexFormat format) { in IsUnsignedFormat()
[all …]
DVertexStateTests.cpp22 using wgpu::VertexFormat;
46 bool ShouldComponentBeDefault(VertexFormat format, int component) { in ShouldComponentBeDefault()
49 case VertexFormat::Float32x4: in ShouldComponentBeDefault()
50 case VertexFormat::Unorm8x4: in ShouldComponentBeDefault()
52 case VertexFormat::Float32x3: in ShouldComponentBeDefault()
54 case VertexFormat::Float32x2: in ShouldComponentBeDefault()
55 case VertexFormat::Unorm8x2: in ShouldComponentBeDefault()
57 case VertexFormat::Float32: in ShouldComponentBeDefault()
66 VertexFormat format;
160 VertexFormat format;
[all …]
DShaderTests.cpp178 rpDesc.cAttributes[0].format = wgpu::VertexFormat::Float32x3; in TEST_P()
180 rpDesc.cAttributes[1].format = wgpu::VertexFormat::Float32x4; in TEST_P()
226 rpDesc.cAttributes[0].format = wgpu::VertexFormat::Float32x3; in TEST_P()
228 rpDesc.cAttributes[1].format = wgpu::VertexFormat::Float32x4; in TEST_P()
273 rpDesc.cAttributes[0].format = wgpu::VertexFormat::Float32x3; in TEST_P()
275 rpDesc.cAttributes[1].format = wgpu::VertexFormat::Float32x4; in TEST_P()
315 rpDesc.cAttributes[0].format = wgpu::VertexFormat::Float32x3; in TEST_P()
317 rpDesc.cAttributes[1].format = wgpu::VertexFormat::Float32x4; in TEST_P()
361 rpDesc.cAttributes[0].format = wgpu::VertexFormat::Uint8x2; in TEST_P()
386 descriptor.cAttributes[0].format = wgpu::VertexFormat::Float32x4; in TEST_P()
/third_party/skia/third_party/externals/angle2/src/libANGLE/renderer/d3d/d3d11/
Dformatutils11.cpp201 constexpr VertexFormat::VertexFormat() in VertexFormat() function in rx::d3d11::VertexFormat
205 constexpr VertexFormat::VertexFormat(VertexConversionType conversionTypeIn, in VertexFormat() function in rx::d3d11::VertexFormat
211 const VertexFormat *GetVertexFormatInfo_FL_9_3(angle::FormatID vertexFormatID) in GetVertexFormatInfo_FL_9_3()
222 static constexpr VertexFormat info(VERTEX_CONVERT_BOTH, DXGI_FORMAT_R16G16_SINT, in GetVertexFormatInfo_FL_9_3()
228 static constexpr VertexFormat info(VERTEX_CONVERT_BOTH, DXGI_FORMAT_R16G16_SINT, in GetVertexFormatInfo_FL_9_3()
234 static constexpr VertexFormat info(VERTEX_CONVERT_BOTH, DXGI_FORMAT_R16G16B16A16_SINT, in GetVertexFormatInfo_FL_9_3()
240 static constexpr VertexFormat info(VERTEX_CONVERT_BOTH, DXGI_FORMAT_R16G16B16A16_SINT, in GetVertexFormatInfo_FL_9_3()
248 static constexpr VertexFormat info(VERTEX_CONVERT_CPU, DXGI_FORMAT_R16G16_SNORM, in GetVertexFormatInfo_FL_9_3()
254 static constexpr VertexFormat info(VERTEX_CONVERT_CPU, DXGI_FORMAT_R16G16_SNORM, in GetVertexFormatInfo_FL_9_3()
260 static constexpr VertexFormat info(VERTEX_CONVERT_CPU, DXGI_FORMAT_R16G16B16A16_SNORM, in GetVertexFormatInfo_FL_9_3()
[all …]
Dformatutils11.h46 struct VertexFormat : private angle::NonCopyable struct
48 constexpr VertexFormat();
49 constexpr VertexFormat(VertexConversionType conversionType,
58 const VertexFormat &GetVertexFormatInfo(angle::FormatID vertexFormatID, argument
/third_party/skia/third_party/externals/dawn/src/dawn_native/
DVertexFormat.cpp25 {wgpu::VertexFormat::Undefined, 0, 0, 0, VertexFormatBaseType::Float},
27 {wgpu::VertexFormat::Uint8x2, 2, 2, 1, VertexFormatBaseType::Uint},
28 {wgpu::VertexFormat::Uint8x4, 4, 4, 1, VertexFormatBaseType::Uint},
29 {wgpu::VertexFormat::Sint8x2, 2, 2, 1, VertexFormatBaseType::Sint},
30 {wgpu::VertexFormat::Sint8x4, 4, 4, 1, VertexFormatBaseType::Sint},
31 {wgpu::VertexFormat::Unorm8x2, 2, 2, 1, VertexFormatBaseType::Float},
32 {wgpu::VertexFormat::Unorm8x4, 4, 4, 1, VertexFormatBaseType::Float},
33 {wgpu::VertexFormat::Snorm8x2, 2, 2, 1, VertexFormatBaseType::Float},
34 {wgpu::VertexFormat::Snorm8x4, 4, 4, 1, VertexFormatBaseType::Float},
36 {wgpu::VertexFormat::Uint16x2, 4, 2, 2, VertexFormatBaseType::Uint},
[all …]
DShaderModule.cpp38 tint::transform::VertexFormat ToTintVertexFormat(wgpu::VertexFormat format) { in ToTintVertexFormat()
40 case wgpu::VertexFormat::Uint8x2: in ToTintVertexFormat()
41 return tint::transform::VertexFormat::kUint8x2; in ToTintVertexFormat()
42 case wgpu::VertexFormat::Uint8x4: in ToTintVertexFormat()
43 return tint::transform::VertexFormat::kUint8x4; in ToTintVertexFormat()
44 case wgpu::VertexFormat::Sint8x2: in ToTintVertexFormat()
45 return tint::transform::VertexFormat::kSint8x2; in ToTintVertexFormat()
46 case wgpu::VertexFormat::Sint8x4: in ToTintVertexFormat()
47 return tint::transform::VertexFormat::kSint8x4; in ToTintVertexFormat()
48 case wgpu::VertexFormat::Unorm8x2: in ToTintVertexFormat()
[all …]
DVertexFormat.h29 wgpu::VertexFormat format;
36 const VertexFormatInfo& GetVertexFormatInfo(wgpu::VertexFormat format);
/third_party/skia/third_party/externals/dawn/src/utils/
DTestUtils.cpp138 uint32_t VertexFormatSize(wgpu::VertexFormat format) { in VertexFormatSize()
140 case wgpu::VertexFormat::Uint8x2: in VertexFormatSize()
141 case wgpu::VertexFormat::Sint8x2: in VertexFormatSize()
142 case wgpu::VertexFormat::Unorm8x2: in VertexFormatSize()
143 case wgpu::VertexFormat::Snorm8x2: in VertexFormatSize()
145 case wgpu::VertexFormat::Uint8x4: in VertexFormatSize()
146 case wgpu::VertexFormat::Sint8x4: in VertexFormatSize()
147 case wgpu::VertexFormat::Unorm8x4: in VertexFormatSize()
148 case wgpu::VertexFormat::Snorm8x4: in VertexFormatSize()
149 case wgpu::VertexFormat::Uint16x2: in VertexFormatSize()
[all …]
/third_party/skia/third_party/externals/dawn/src/tests/unittests/validation/
DVertexStateValidationTests.cpp286 state.cAttributes[0].offset = kMaxVertexBufferArrayStride - sizeof(wgpu::VertexFormat::Float32); in TEST_F()
302 state.cAttributes[0].format = wgpu::VertexFormat::Float32; in TEST_F()
308 state.cAttributes[0].format = wgpu::VertexFormat::Snorm16x2; in TEST_F()
314 state.cAttributes[0].format = wgpu::VertexFormat::Unorm8x2; in TEST_F()
321 state.cAttributes[0].format = wgpu::VertexFormat::Snorm16x4; in TEST_F()
325 state.cAttributes[0].format = wgpu::VertexFormat::Uint32x3; in TEST_F()
329 state.cAttributes[0].format = wgpu::VertexFormat::Sint32x4; in TEST_F()
349 state.cAttributes[0].format = wgpu::VertexFormat::Float32x4; in TEST_F()
355 auto DoTest = [&](wgpu::VertexFormat format, std::string shaderType, bool success) { in TEST_F()
371 DoTest(wgpu::VertexFormat::Float32, "f32", true); in TEST_F()
[all …]
DDrawVertexAndIndexBufferOOBValidationTests.cpp70 wgpu::VertexFormat format;
174 {bufferStride, wgpu::VertexStepMode::Vertex, {{0, wgpu::VertexFormat::Float32x4}}}, in CreateBasicRenderPipeline()
189 {bufferStride1, wgpu::VertexStepMode::Vertex, {{0, wgpu::VertexFormat::Float32x4}}}, in CreateBasicRenderPipelineWithInstance()
192 {{3, wgpu::VertexFormat::Float32x2}}}, in CreateBasicRenderPipelineWithInstance()
205 {{0, wgpu::VertexFormat::Float32x4, 0}, {1, wgpu::VertexFormat::Float32x2, 20}}}, in CreateBasicRenderPipelineWithZeroArrayStride()
209 {{3, wgpu::VertexFormat::Float32x4, 4}, {7, wgpu::VertexFormat::Float32x3, 0}}}, in CreateBasicRenderPipelineWithZeroArrayStride()
/third_party/skia/third_party/externals/dawn/src/dawn_native/d3d12/
DRenderPipelineD3D12.cpp33 DXGI_FORMAT VertexFormatType(wgpu::VertexFormat format) { in VertexFormatType()
35 case wgpu::VertexFormat::Uint8x2: in VertexFormatType()
37 case wgpu::VertexFormat::Uint8x4: in VertexFormatType()
39 case wgpu::VertexFormat::Sint8x2: in VertexFormatType()
41 case wgpu::VertexFormat::Sint8x4: in VertexFormatType()
43 case wgpu::VertexFormat::Unorm8x2: in VertexFormatType()
45 case wgpu::VertexFormat::Unorm8x4: in VertexFormatType()
47 case wgpu::VertexFormat::Snorm8x2: in VertexFormatType()
49 case wgpu::VertexFormat::Snorm8x4: in VertexFormatType()
51 case wgpu::VertexFormat::Uint16x2: in VertexFormatType()
[all …]
/third_party/skia/third_party/externals/dawn/src/dawn_native/vulkan/
DRenderPipelineVk.cpp41 VkFormat VulkanVertexFormat(wgpu::VertexFormat format) { in VulkanVertexFormat()
43 case wgpu::VertexFormat::Uint8x2: in VulkanVertexFormat()
45 case wgpu::VertexFormat::Uint8x4: in VulkanVertexFormat()
47 case wgpu::VertexFormat::Sint8x2: in VulkanVertexFormat()
49 case wgpu::VertexFormat::Sint8x4: in VulkanVertexFormat()
51 case wgpu::VertexFormat::Unorm8x2: in VulkanVertexFormat()
53 case wgpu::VertexFormat::Unorm8x4: in VulkanVertexFormat()
55 case wgpu::VertexFormat::Snorm8x2: in VulkanVertexFormat()
57 case wgpu::VertexFormat::Snorm8x4: in VulkanVertexFormat()
59 case wgpu::VertexFormat::Uint16x2: in VulkanVertexFormat()
[all …]
/third_party/skia/third_party/externals/dawn/src/dawn_native/metal/
DRenderPipelineMTL.mm18 #include "dawn_native/VertexFormat.h"
28 MTLVertexFormat VertexFormatType(wgpu::VertexFormat format) {
30 case wgpu::VertexFormat::Uint8x2:
32 case wgpu::VertexFormat::Uint8x4:
34 case wgpu::VertexFormat::Sint8x2:
36 case wgpu::VertexFormat::Sint8x4:
38 case wgpu::VertexFormat::Unorm8x2:
40 case wgpu::VertexFormat::Unorm8x4:
42 case wgpu::VertexFormat::Snorm8x2:
44 case wgpu::VertexFormat::Snorm8x4:
[all …]
/third_party/skia/third_party/externals/dawn/src/dawn_native/opengl/
DCommandBufferGL.cpp53 GLenum VertexFormatType(wgpu::VertexFormat format) { in VertexFormatType()
55 case wgpu::VertexFormat::Uint8x2: in VertexFormatType()
56 case wgpu::VertexFormat::Uint8x4: in VertexFormatType()
57 case wgpu::VertexFormat::Unorm8x2: in VertexFormatType()
58 case wgpu::VertexFormat::Unorm8x4: in VertexFormatType()
60 case wgpu::VertexFormat::Sint8x2: in VertexFormatType()
61 case wgpu::VertexFormat::Sint8x4: in VertexFormatType()
62 case wgpu::VertexFormat::Snorm8x2: in VertexFormatType()
63 case wgpu::VertexFormat::Snorm8x4: in VertexFormatType()
65 case wgpu::VertexFormat::Uint16x2: in VertexFormatType()
[all …]
/third_party/skia/third_party/externals/angle2/src/libANGLE/
Dformatutils.cpp2285 const VertexFormat &GetVertexFormatFromID(angle::FormatID vertexFormatID) in GetVertexFormatFromID()
2291 static const VertexFormat format(GL_BYTE, GL_FALSE, 1, false); in GetVertexFormatFromID()
2296 static const VertexFormat format(GL_BYTE, GL_TRUE, 1, false); in GetVertexFormatFromID()
2301 static const VertexFormat format(GL_BYTE, GL_FALSE, 2, false); in GetVertexFormatFromID()
2306 static const VertexFormat format(GL_BYTE, GL_TRUE, 2, false); in GetVertexFormatFromID()
2311 static const VertexFormat format(GL_BYTE, GL_FALSE, 3, false); in GetVertexFormatFromID()
2316 static const VertexFormat format(GL_BYTE, GL_TRUE, 3, false); in GetVertexFormatFromID()
2321 static const VertexFormat format(GL_BYTE, GL_FALSE, 4, false); in GetVertexFormatFromID()
2326 static const VertexFormat format(GL_BYTE, GL_TRUE, 4, false); in GetVertexFormatFromID()
2331 static const VertexFormat format(GL_UNSIGNED_BYTE, GL_FALSE, 1, false); in GetVertexFormatFromID()
[all …]
/third_party/skia/third_party/externals/angle2/src/libANGLE/renderer/metal/
DVertexArrayMtl.h105 const mtl::VertexFormat &vertexFormat);
111 const mtl::VertexFormat &convertedFormat,
119 const mtl::VertexFormat &convertedFormat,
143 gl::AttribArray<const mtl::VertexFormat *> mCurrentArrayBufferFormats;
145 const mtl::VertexFormat &mDefaultFloatVertexFormat;
146 const mtl::VertexFormat &mDefaultIntVertexFormat;
147 const mtl::VertexFormat &mDefaultUIntVertexFormat;
Dmtl_format_utils.h110 struct VertexFormat : public FormatBase struct
112 VertexFormat() = default;
148 const VertexFormat &getVertexFormat(angle::FormatID angleFormatId, bool tightlyPacked) const; argument
204 std::array<VertexFormat, angle::kNumANGLEFormats> mVertexFormatTables[2];
/third_party/skia/third_party/externals/dawn/src/dawn_node/binding/
DConverter.cpp736 bool Converter::Convert(wgpu::VertexFormat& out, const interop::GPUVertexFormat& in) { in Convert()
737 out = wgpu::VertexFormat::Undefined; in Convert()
740 out = wgpu::VertexFormat::Uint8x2; in Convert()
743 out = wgpu::VertexFormat::Uint8x4; in Convert()
746 out = wgpu::VertexFormat::Sint8x2; in Convert()
749 out = wgpu::VertexFormat::Sint8x4; in Convert()
752 out = wgpu::VertexFormat::Unorm8x2; in Convert()
755 out = wgpu::VertexFormat::Unorm8x4; in Convert()
758 out = wgpu::VertexFormat::Snorm8x2; in Convert()
761 out = wgpu::VertexFormat::Snorm8x4; in Convert()
[all …]
/third_party/skia/third_party/externals/angle2/src/libANGLE/renderer/d3d/d3d9/
Dformatutils9.h32 struct VertexFormat struct
34 VertexFormat();
42 const VertexFormat &GetVertexFormatInfo(DWORD supportedDeclTypes, angle::FormatID vertexFormatID); argument
Dformatutils9.cpp231 VertexFormat preferredConversion;
232 VertexFormat fallbackConversion;
570 VertexFormat::VertexFormat() in VertexFormat() function in rx::d3d9::VertexFormat
579 VertexFormat CreateVertexFormatInfo(bool identity, in CreateVertexFormatInfo()
584 VertexFormat formatInfo; in CreateVertexFormatInfo()
654 const VertexFormat &GetVertexFormatInfo(DWORD supportedDeclTypes, angle::FormatID vertexFormatID) in GetVertexFormatInfo()
657 static VertexFormat formatConverters[NUM_GL_VERTEX_ATTRIB_TYPES][2][4]; in GetVertexFormatInfo()
687 const gl::VertexFormat &vertexFormat = gl::GetVertexFormatFromID(vertexFormatID); in GetVertexFormatInfo()
/third_party/skia/src/gpu/dawn/
DGrDawnProgramBuilder.cpp151 static wgpu::VertexFormat to_dawn_vertex_format(GrVertexAttribType type) { in to_dawn_vertex_format()
155 return wgpu::VertexFormat::Float32; in to_dawn_vertex_format()
158 return wgpu::VertexFormat::Float32x2; in to_dawn_vertex_format()
160 return wgpu::VertexFormat::Float32x3; in to_dawn_vertex_format()
163 return wgpu::VertexFormat::Float32x4; in to_dawn_vertex_format()
165 return wgpu::VertexFormat::Uint16x2; in to_dawn_vertex_format()
167 return wgpu::VertexFormat::Sint32; in to_dawn_vertex_format()
169 return wgpu::VertexFormat::Unorm8x4; in to_dawn_vertex_format()
172 return wgpu::VertexFormat::Float32x4; in to_dawn_vertex_format()

123