/third_party/skia/third_party/externals/dawn/src/tests/unittests/ |
D | PerStageTests.cpp | 23 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/ |
D | PerStageTests.cpp | 23 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/ |
D | PerStage.h | 28 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 …]
|
D | PerStage.cpp | 19 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()
|
D | ShaderModule.cpp | 105 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/ |
D | ShaderModuleValidationTests.cpp | 218 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 …]
|
D | BindGroupValidationTests.cpp | 105 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 …]
|
D | ResourceUsageTrackingTests.cpp | 105 {{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 …]
|
D | StorageTextureValidationTests.cpp | 206 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 …]
|
D | GetBindGroupLayoutValidationTests.cpp | 144 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 …]
|
D | MinimumBufferSizeValidationTests.cpp | 32 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/ |
D | PerStage.h | 40 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 {
|
D | PerStage.cpp | 39 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()
|
D | Pipeline.h | 62 wgpu::ShaderStage GetStageMask() const; 89 wgpu::ShaderStage mStageMask = wgpu::ShaderStage::None;
|
D | QueryHelper.cpp | 128 {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/ |
D | ObjectCachingTests.cpp | 25 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 …]
|
D | DynamicBufferOffsetTests.cpp | 64 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()
|
D | OpArrayLengthTests.cpp | 39 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/ |
D | ObjectCachingTests.cpp | 75 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/ |
D | PipelineGL.cpp | 31 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/ |
D | WGPUHelpers.h | 57 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/ |
D | RenderPipelineMTL.h | 49 wgpu::ShaderStage GetStagesRequiringStorageBufferLength() const; 65 wgpu::ShaderStage mStagesRequiringStorageBufferLength = wgpu::ShaderStage::None;
|
/third_party/skia/third_party/externals/dawn/src/utils/ |
D | WGPUHelpers.h | 113 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/ |
D | PipelineLayoutD3D12.cpp | 40 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/ |
D | BindGroupLayoutVk.cpp | 32 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()
|