Flutter Engine
The Flutter Engine
Loading...
Searching...
No Matches
DescriptorData.h
Go to the documentation of this file.
1/*
2 * Copyright 2023 Google LLC
3 *
4 * Use of this source code is governed by a BSD-style license that can be
5 * found in the LICENSE file.
6 */
7
8#ifndef skgpu_graphite_DescriptorTypes_DEFINED
9#define skgpu_graphite_DescriptorTypes_DEFINED
10
12
13namespace skgpu::graphite {
14
15/**
16 * Types of descriptors supported within graphite
17*/
28static constexpr int kDescriptorTypeCount = (int)(DescriptorType::kLast) + 1;
29
30enum class PipelineStageFlags : uint8_t {
31 kVertexShader = 0b001,
32 kFragmentShader = 0b010,
33 kCompute = 0b100,
34};
36
39 uint32_t descCount,
40 int bindingIdx,
42 : type (descType)
43 , count (descCount)
44 , bindingIndex (bindingIdx)
45 , pipelineStageFlags(stageFlags) {}
46
48 uint32_t count;
51};
52
53}; // namespace skgpu::graphite
54
55#endif // skgpu_graphite_DescriptorTypes_DEFINED
#define SK_MAKE_BITMASK_OPS(E)
Type::kYUV Type::kRGBA() int(0.7 *637)
static constexpr int kDescriptorTypeCount
SkEnumBitMask< PipelineStageFlags > pipelineStageFlags
DescriptorData(DescriptorType descType, uint32_t descCount, int bindingIdx, SkEnumBitMask< PipelineStageFlags > stageFlags)