Home
last modified time | relevance | path

Searched refs:kNumStages (Results 1 – 3 of 3) sorted by relevance

/third_party/skia/third_party/externals/dawn/src/dawn_native/
DPerStage.h36 static_assert(static_cast<uint32_t>(SingleShaderStage::Vertex) < kNumStages, "");
37 static_assert(static_cast<uint32_t>(SingleShaderStage::Fragment) < kNumStages, "");
38 static_assert(static_cast<uint32_t>(SingleShaderStage::Compute) < kNumStages, "");
50 BitSetIterator<kNumStages, SingleShaderStage> IterateStages(wgpu::ShaderStage stages);
54 static_cast<wgpu::ShaderStage>((1 << kNumStages) - 1);
65 DAWN_ASSERT(static_cast<uint32_t>(stage) < kNumStages);
69 DAWN_ASSERT(static_cast<uint32_t>(stage) < kNumStages);
75 DAWN_ASSERT(bit != 0 && IsPowerOfTwo(bit) && bit <= (1 << kNumStages));
80 DAWN_ASSERT(bit != 0 && IsPowerOfTwo(bit) && bit <= (1 << kNumStages));
85 std::array<T, kNumStages> mData;
DPerStage.cpp39 BitSetIterator<kNumStages, SingleShaderStage> IterateStages(wgpu::ShaderStage stages) { in IterateStages()
40 std::bitset<kNumStages> bits(static_cast<uint32_t>(stages)); in IterateStages()
41 return BitSetIterator<kNumStages, SingleShaderStage>(bits); in IterateStages()
45 ASSERT(static_cast<uint32_t>(stage) < kNumStages); in StageBit()
/third_party/skia/third_party/externals/dawn/src/common/
DConstants.h24 static constexpr uint32_t kNumStages = 3; variable