Home
last modified time | relevance | path

Searched refs:ShaderStage (Results 1 – 25 of 129) sorted by relevance

123456

/third_party/skia/third_party/externals/dawn/src/tests/unittests/
DPerStageTests.cpp23 ASSERT_EQ(StageBit(SingleShaderStage::Vertex), wgpu::ShaderStage::Vertex); in TEST()
24 ASSERT_EQ(StageBit(SingleShaderStage::Fragment), wgpu::ShaderStage::Fragment); in TEST()
25 ASSERT_EQ(StageBit(SingleShaderStage::Compute), wgpu::ShaderStage::Compute); in TEST()
38 ASSERT_EQ(data[wgpu::ShaderStage::Vertex], 42); in TEST()
39 ASSERT_EQ(data[wgpu::ShaderStage::Fragment], 3); in TEST()
40 ASSERT_EQ(data[wgpu::ShaderStage::Compute], -1); in TEST()
54 ASSERT_EQ(counts[wgpu::ShaderStage::Vertex], 1); in TEST()
55 ASSERT_EQ(counts[wgpu::ShaderStage::Fragment], 1); in TEST()
56 ASSERT_EQ(counts[wgpu::ShaderStage::Compute], 1); in TEST()
66 for (auto stage : IterateStages(wgpu::ShaderStage::Fragment)) { in TEST()
[all …]
/third_party/flutter/skia/third_party/externals/dawn/src/tests/unittests/
DPerStageTests.cpp23 ASSERT_EQ(StageBit(ShaderStage::Vertex), dawn::ShaderStageBit::Vertex); in TEST()
24 ASSERT_EQ(StageBit(ShaderStage::Fragment), dawn::ShaderStageBit::Fragment); in TEST()
25 ASSERT_EQ(StageBit(ShaderStage::Compute), dawn::ShaderStageBit::Compute); in TEST()
33 data[ShaderStage::Vertex] = 42; in TEST()
34 data[ShaderStage::Fragment] = 3; in TEST()
35 data[ShaderStage::Compute] = -1; in TEST()
46 counts[ShaderStage::Vertex] = 0; in TEST()
47 counts[ShaderStage::Fragment] = 0; in TEST()
48 counts[ShaderStage::Compute] = 0; in TEST()
62 counts[ShaderStage::Vertex] = 0; in TEST()
[all …]
/third_party/flutter/skia/third_party/externals/dawn/src/dawn_native/
DPerStage.h28 enum class ShaderStage { Vertex, Fragment, Compute }; enum
30 static_assert(static_cast<uint32_t>(ShaderStage::Vertex) < kNumStages, "");
31 static_assert(static_cast<uint32_t>(ShaderStage::Fragment) < kNumStages, "");
32 static_assert(static_cast<uint32_t>(ShaderStage::Compute) < kNumStages, "");
35 (1 << static_cast<uint32_t>(ShaderStage::Vertex)),
38 (1 << static_cast<uint32_t>(ShaderStage::Fragment)),
41 (1 << static_cast<uint32_t>(ShaderStage::Compute)),
44 BitSetIterator<kNumStages, ShaderStage> IterateStages(dawn::ShaderStageBit stages);
45 dawn::ShaderStageBit StageBit(ShaderStage stage);
58 T& operator[](ShaderStage stage) {
[all …]
DPerStage.cpp19 BitSetIterator<kNumStages, ShaderStage> IterateStages(dawn::ShaderStageBit stages) { in IterateStages()
21 return BitSetIterator<kNumStages, ShaderStage>(bits); in IterateStages()
24 dawn::ShaderStageBit StageBit(ShaderStage stage) { in StageBit()
DShaderModule.cpp105 mExecutionModel = ShaderStage::Vertex; in ExtractSpirvInfo()
108 mExecutionModel = ShaderStage::Fragment; in ExtractSpirvInfo()
111 mExecutionModel = ShaderStage::Compute; in ExtractSpirvInfo()
156 if (mExecutionModel == ShaderStage::Vertex) { in ExtractSpirvInfo()
179 if (mExecutionModel == ShaderStage::Fragment) { in ExtractSpirvInfo()
201 ShaderStage ShaderModuleBase::GetExecutionModel() const { in GetExecutionModel()
/third_party/skia/third_party/externals/dawn/src/tests/unittests/validation/
DShaderModuleValidationTests.cpp218 auto generateShaderForTest = [](uint32_t maximumOutputLocation, wgpu::ShaderStage shaderStage) { in TEST_F()
225 case wgpu::ShaderStage::Vertex: { in TEST_F()
236 case wgpu::ShaderStage::Fragment: { in TEST_F()
244 case wgpu::ShaderStage::Compute: in TEST_F()
257 generateShaderForTest(kMaxInterShaderIOLocation, wgpu::ShaderStage::Vertex); in TEST_F()
265 generateShaderForTest(kMaxInterShaderIOLocation + 1, wgpu::ShaderStage::Vertex); in TEST_F()
273 generateShaderForTest(kMaxInterShaderIOLocation, wgpu::ShaderStage::Fragment); in TEST_F()
280 generateShaderForTest(kMaxInterShaderIOLocation + 1, wgpu::ShaderStage::Fragment); in TEST_F()
289 wgpu::ShaderStage shaderStage, in TEST_F()
313 case wgpu::ShaderStage::Vertex: { in TEST_F()
[all …]
DBindGroupValidationTests.cpp105 device, {{0, wgpu::ShaderStage::Fragment, wgpu::SamplerBindingType::Filtering}}); in TEST_F()
117 device, {{0, wgpu::ShaderStage::Fragment, wgpu::SamplerBindingType::Filtering}}); in TEST_F()
129 device, {{0, wgpu::ShaderStage::Fragment, wgpu::SamplerBindingType::Filtering}, in TEST_F()
130 {1, wgpu::ShaderStage::Fragment, wgpu::SamplerBindingType::Filtering}}); in TEST_F()
142 device, {{0, wgpu::ShaderStage::Fragment, wgpu::SamplerBindingType::Filtering}}); in TEST_F()
196 device, {{0, wgpu::ShaderStage::Fragment, wgpu::TextureSampleType::Float}}); in TEST_F()
255 device, {{0, wgpu::ShaderStage::Fragment, wgpu::BufferBindingType::Uniform}}); in TEST_F()
319 device, {{0, wgpu::ShaderStage::Fragment, &utils::kExternalTextureBindingLayout}}); in TEST_F()
396 device, {{0, wgpu::ShaderStage::Fragment, wgpu::TextureSampleType::Float}}); in TEST_F()
411 device, {{0, wgpu::ShaderStage::Compute, wgpu::StorageTextureAccess::WriteOnly, in TEST_F()
[all …]
DResourceUsageTrackingTests.cpp105 {{0, wgpu::ShaderStage::Compute, wgpu::BufferBindingType::Uniform}, in TEST_F()
106 {1, wgpu::ShaderStage::Compute, wgpu::BufferBindingType::ReadOnlyStorage}}); in TEST_F()
128 device, {{0, wgpu::ShaderStage::Fragment, wgpu::BufferBindingType::Storage}}); in TEST_F()
148 {{0, wgpu::ShaderStage::Compute, wgpu::BufferBindingType::Storage}, in TEST_F()
149 {1, wgpu::ShaderStage::Compute, wgpu::BufferBindingType::ReadOnlyStorage}}); in TEST_F()
187 device, {{0, wgpu::ShaderStage::Fragment | wgpu::ShaderStage::Compute, in TEST_F()
189 {1, wgpu::ShaderStage::Fragment | wgpu::ShaderStage::Compute, in TEST_F()
232 device, {{0, wgpu::ShaderStage::Fragment, wgpu::BufferBindingType::Storage}}); in TEST_F()
260 device, {{0, wgpu::ShaderStage::Compute, wgpu::BufferBindingType::Storage}}); in TEST_F()
262 device, {{0, wgpu::ShaderStage::Compute, wgpu::BufferBindingType::Uniform}}); in TEST_F()
[all …]
DStorageTextureValidationTests.cpp206 wgpu::ShaderStage stage; in TEST_F()
211 {{wgpu::ShaderStage::Vertex, wgpu::StorageTextureAccess::WriteOnly, false}, in TEST_F()
212 {wgpu::ShaderStage::Fragment, wgpu::StorageTextureAccess::WriteOnly, true}, in TEST_F()
213 {wgpu::ShaderStage::Compute, wgpu::StorageTextureAccess::WriteOnly, true}}}; in TEST_F()
317 device, {{0, wgpu::ShaderStage::Compute, bindingType, kFormat, dimension}})); in TEST_F()
329 {0, wgpu::ShaderStage::Compute, wgpu::BufferBindingType::Uniform}, in TEST_F()
330 {0, wgpu::ShaderStage::Compute, wgpu::BufferBindingType::Storage}, in TEST_F()
331 {0, wgpu::ShaderStage::Compute, wgpu::BufferBindingType::ReadOnlyStorage}, in TEST_F()
332 {0, wgpu::ShaderStage::Compute, wgpu::SamplerBindingType::Filtering}, in TEST_F()
333 {0, wgpu::ShaderStage::Compute, wgpu::TextureSampleType::Float}, in TEST_F()
[all …]
DGetBindGroupLayoutValidationTests.cpp144 binding.visibility = wgpu::ShaderStage::Fragment; in TEST_F()
148 binding.visibility = wgpu::ShaderStage::Vertex; in TEST_F()
151 binding.visibility = wgpu::ShaderStage::Compute; in TEST_F()
156 binding.visibility = wgpu::ShaderStage::Fragment; in TEST_F()
167 device, {{0, wgpu::ShaderStage::Vertex | wgpu::ShaderStage::Fragment, in TEST_F()
169 {1, wgpu::ShaderStage::Vertex | wgpu::ShaderStage::Fragment, in TEST_F()
173 device, {{0, wgpu::ShaderStage::Vertex | wgpu::ShaderStage::Fragment, in TEST_F()
175 {1, wgpu::ShaderStage::Vertex | wgpu::ShaderStage::Fragment, in TEST_F()
312 binding.visibility = wgpu::ShaderStage::Compute; in TEST_F()
335 binding.visibility = wgpu::ShaderStage::Fragment; in TEST_F()
[all …]
DMinimumBufferSizeValidationTests.cpp32 wgpu::ShaderStage visibility = wgpu::ShaderStage::Compute | wgpu::ShaderStage::Fragment;
97 wgpu::ShaderStage stage) { in GenerateReferenceString()
119 GenerateReferenceString(bindings, wgpu::ShaderStage::Compute) + "}"; in CreateComputeShaderWithBindings()
126 GenerateReferenceString(bindings, wgpu::ShaderStage::Vertex) + in CreateVertexShaderWithBindings()
133 GenerateReferenceString(bindings, wgpu::ShaderStage::Fragment) + "}"; in CreateFragmentShaderWithBindings()
412 {{0, wgpu::ShaderStage::Compute, wgpu::BufferBindingType::Uniform, false, size}}); in TEST_F()
579 wgpu::ShaderStage::Vertex}, in TEST_F()
581 wgpu::ShaderStage::Vertex}}); in TEST_F()
584 wgpu::ShaderStage::Fragment}, in TEST_F()
586 wgpu::ShaderStage::Fragment}}); in TEST_F()
/third_party/skia/third_party/externals/dawn/src/dawn_native/
DPerStage.h40 static_assert(static_cast<uint32_t>(wgpu::ShaderStage::Vertex) ==
43 static_assert(static_cast<uint32_t>(wgpu::ShaderStage::Fragment) ==
46 static_assert(static_cast<uint32_t>(wgpu::ShaderStage::Compute) ==
50 BitSetIterator<kNumStages, SingleShaderStage> IterateStages(wgpu::ShaderStage stages);
51 wgpu::ShaderStage StageBit(SingleShaderStage stage);
53 static constexpr wgpu::ShaderStage kAllStages =
54 static_cast<wgpu::ShaderStage>((1 << kNumStages) - 1);
73 T& operator[](wgpu::ShaderStage stageBit) {
78 const T& operator[](wgpu::ShaderStage stageBit) const {
DPerStage.cpp39 BitSetIterator<kNumStages, SingleShaderStage> IterateStages(wgpu::ShaderStage stages) { in IterateStages()
44 wgpu::ShaderStage StageBit(SingleShaderStage stage) { in StageBit()
46 return static_cast<wgpu::ShaderStage>(1 << static_cast<uint32_t>(stage)); in StageBit()
DPipeline.h62 wgpu::ShaderStage GetStageMask() const;
89 wgpu::ShaderStage mStageMask = wgpu::ShaderStage::None;
DQueryHelper.cpp128 {0, wgpu::ShaderStage::Compute, kInternalStorageBufferBinding}, in GetOrCreateTimestampComputePipeline()
129 {1, wgpu::ShaderStage::Compute, in GetOrCreateTimestampComputePipeline()
131 {2, wgpu::ShaderStage::Compute, wgpu::BufferBindingType::Uniform}, in GetOrCreateTimestampComputePipeline()
/third_party/skia/third_party/externals/dawn/src/tests/end2end/
DObjectCachingTests.cpp25 device, {{1, wgpu::ShaderStage::Fragment, wgpu::BufferBindingType::Uniform}}); in TEST_P()
27 device, {{1, wgpu::ShaderStage::Fragment, wgpu::BufferBindingType::Uniform}}); in TEST_P()
29 device, {{1, wgpu::ShaderStage::Vertex, wgpu::BufferBindingType::Uniform}}); in TEST_P()
38 device, {{1, wgpu::ShaderStage::Fragment, wgpu::BufferBindingType::Uniform, true}}); in TEST_P()
40 device, {{1, wgpu::ShaderStage::Fragment, wgpu::BufferBindingType::Uniform, true}}); in TEST_P()
42 device, {{1, wgpu::ShaderStage::Fragment, wgpu::BufferBindingType::Uniform, false}}); in TEST_P()
52 device, {{1, wgpu::ShaderStage::Fragment, wgpu::TextureSampleType::Float}}); in TEST_P()
54 device, {{1, wgpu::ShaderStage::Fragment, wgpu::TextureSampleType::Float}}); in TEST_P()
56 device, {{1, wgpu::ShaderStage::Fragment, wgpu::TextureSampleType::Uint}}); in TEST_P()
66 device, {{1, wgpu::ShaderStage::Fragment, wgpu::TextureSampleType::Float}}); in TEST_P()
[all …]
DDynamicBufferOffsetTests.cpp64 device, {{0, wgpu::ShaderStage::Compute | wgpu::ShaderStage::Fragment, in SetUp()
66 {1, wgpu::ShaderStage::Compute | wgpu::ShaderStage::Fragment, in SetUp()
68 {3, wgpu::ShaderStage::Compute | wgpu::ShaderStage::Fragment, in SetUp()
70 {4, wgpu::ShaderStage::Compute | wgpu::ShaderStage::Fragment, in SetUp()
87 device, {{0, wgpu::ShaderStage::Compute | wgpu::ShaderStage::Fragment, in SetUp()
434 device, {{0, wgpu::ShaderStage::Compute, sourceBindingType, true}, in TEST_P()
435 {1, wgpu::ShaderStage::Compute, wgpu::BufferBindingType::Storage, true}}); in TEST_P()
DOpArrayLengthTests.cpp39 wgpu::ShaderStage kAllStages = in SetUp()
40 wgpu::ShaderStage::Fragment | wgpu::ShaderStage::Vertex | wgpu::ShaderStage::Compute; in SetUp()
107 device, {{0, wgpu::ShaderStage::Compute, wgpu::BufferBindingType::Storage}}); in TEST_P()
/third_party/flutter/skia/third_party/externals/dawn/src/tests/end2end/
DObjectCachingTests.cpp75 dawn::ShaderModule module = utils::CreateShaderModule(device, utils::ShaderStage::Fragment, R"( in TEST_P()
82 utils::CreateShaderModule(device, utils::ShaderStage::Fragment, R"( in TEST_P()
89 utils::CreateShaderModule(device, utils::ShaderStage::Fragment, R"( in TEST_P()
102 dawn::ShaderModule module = utils::CreateShaderModule(device, utils::ShaderStage::Compute, R"( in TEST_P()
108 utils::CreateShaderModule(device, utils::ShaderStage::Compute, R"( in TEST_P()
114 utils::CreateShaderModule(device, utils::ShaderStage::Compute, R"( in TEST_P()
160 stageDesc.module = utils::CreateShaderModule(device, utils::ShaderStage::Compute, R"( in TEST_P()
197 desc.cVertexStage.module = utils::CreateShaderModule(device, utils::ShaderStage::Vertex, R"( in TEST_P()
202 desc.cFragmentStage.module = utils::CreateShaderModule(device, utils::ShaderStage::Fragment, R"( in TEST_P()
222 dawn::ShaderModule module = utils::CreateShaderModule(device, utils::ShaderStage::Vertex, R"( in TEST_P()
[all …]
/third_party/flutter/skia/third_party/externals/dawn/src/dawn_native/opengl/
DPipelineGL.cpp31 GLenum GLShaderType(ShaderStage stage) { in GLShaderType()
33 case ShaderStage::Vertex: in GLShaderType()
35 case ShaderStage::Fragment: in GLShaderType()
37 case ShaderStage::Compute: in GLShaderType()
78 for (ShaderStage stage : IterateStages(kAllStages)) { in Initialize()
84 for (ShaderStage stage : IterateStages(activeStages)) { in Initialize()
151 for (ShaderStage stage : IterateStages(activeStages)) { in Initialize()
/third_party/skia/third_party/externals/dawn/src/dawn_native/utils/
DWGPUHelpers.h57 wgpu::ShaderStage entryVisibility,
62 wgpu::ShaderStage entryVisibility,
66 wgpu::ShaderStage entryVisibility,
72 wgpu::ShaderStage entryVisibility,
/third_party/skia/third_party/externals/dawn/src/dawn_native/metal/
DRenderPipelineMTL.h49 wgpu::ShaderStage GetStagesRequiringStorageBufferLength() const;
65 wgpu::ShaderStage mStagesRequiringStorageBufferLength = wgpu::ShaderStage::None;
/third_party/skia/third_party/externals/dawn/src/utils/
DWGPUHelpers.h113 wgpu::ShaderStage entryVisibility,
118 wgpu::ShaderStage entryVisibility,
122 wgpu::ShaderStage entryVisibility,
128 wgpu::ShaderStage entryVisibility,
133 wgpu::ShaderStage entryVisibility,
/third_party/skia/third_party/externals/dawn/src/dawn_native/d3d12/
DPipelineLayoutD3D12.cpp40 D3D12_SHADER_VISIBILITY ShaderVisibilityType(wgpu::ShaderStage visibility) { in ShaderVisibilityType()
41 ASSERT(visibility != wgpu::ShaderStage::None); in ShaderVisibilityType()
43 if (visibility == wgpu::ShaderStage::Vertex) { in ShaderVisibilityType()
47 if (visibility == wgpu::ShaderStage::Fragment) { in ShaderVisibilityType()
143 if (bindingInfo.visibility == wgpu::ShaderStage::None) { in Initialize()
296 wgpu::ShaderStage::None); in GetDynamicRootParameterIndex()
/third_party/skia/third_party/externals/dawn/src/dawn_native/vulkan/
DBindGroupLayoutVk.cpp32 VkShaderStageFlags VulkanShaderStageFlags(wgpu::ShaderStage stages) { in VulkanShaderStageFlags()
35 if (stages & wgpu::ShaderStage::Vertex) { in VulkanShaderStageFlags()
38 if (stages & wgpu::ShaderStage::Fragment) { in VulkanShaderStageFlags()
41 if (stages & wgpu::ShaderStage::Compute) { in VulkanShaderStageFlags()

123456