Flutter Engine
The Flutter Engine
Loading...
Searching...
No Matches
fixtures.h
Go to the documentation of this file.
1// Copyright 2013 The Flutter Authors. All rights reserved.
2// Use of this source code is governed by a BSD-style license that can be
3// found in the LICENSE file.
4
5#ifndef FLUTTER_LIB_GPU_FIXTURES_H_
6#define FLUTTER_LIB_GPU_FIXTURES_H_
7
9
12 impeller::Point position; // (offset 0, size 8)
13 }; // struct PerVertexData (size 8)
14
16 // position
17 "position", // name
18 0u, // attribute location
19 0u, // attribute set
20 0u, // attribute binding
22 32u, // bit width of type
23 2u, // vec size
24 1u, // number of columns
25 0u, // offset for interleaved layout
26 };
27
28 static constexpr std::array<const impeller::ShaderStageIOSlot*, 1>
30 &kInputPosition, // position
31 };
32
34 sizeof(PerVertexData), // stride for interleaved layout
35 0u, // attribute binding
36 };
37 static constexpr std::array<const impeller::ShaderStageBufferLayout*, 1>
39};
40
41constexpr unsigned int kFlutterGPUUnlitVertIPLRLength = 856;
42extern unsigned char kFlutterGPUUnlitVertIPLR[];
43
44constexpr unsigned int kFlutterGPUUnlitFragIPLRLength = 556;
45extern unsigned char kFlutterGPUUnlitFragIPLR[];
46
49 impeller::Vector3 position; // (offset 0, size 12)
50 impeller::Point texture_coords; // (offset 12, size 8)
51 impeller::Vector4 color; // (offset 20, size 16)
52 }; // struct PerVertexData (size 36)
53
55 // texture_coords
56 "texture_coords", // name
57 1u, // attribute location
58 0u, // attribute set
59 0u, // attribute binding
61 32u, // bit width of type
62 2u, // vec size
63 1u, // number of columns
64 12u, // offset for interleaved layout
65 };
66
68 // color
69 "color", // name
70 2u, // attribute location
71 0u, // attribute set
72 0u, // attribute binding
74 32u, // bit width of type
75 4u, // vec size
76 1u, // number of columns
77 20u, // offset for interleaved layout
78 };
79
81 // position
82 "position", // name
83 0u, // attribute location
84 0u, // attribute set
85 0u, // attribute binding
87 32u, // bit width of type
88 3u, // vec size
89 1u, // number of columns
90 0u, // offset for interleaved layout
91 };
92
93 static constexpr std::array<const impeller::ShaderStageIOSlot*, 3>
95 &kInputTextureCoords, // texture_coords
96 &kInputColor, // color
97 &kInputPosition, // position
98 };
99
101 sizeof(PerVertexData), // stride for interleaved layout
102 0u, // attribute binding
103 };
104 static constexpr std::array<const impeller::ShaderStageBufferLayout*, 1>
106};
107
108constexpr unsigned int kFlutterGPUTextureVertIPLRLength = 920;
109extern unsigned char kFlutterGPUTextureVertIPLR[];
110
111constexpr unsigned int kFlutterGPUTextureFragIPLRLength = 800;
112extern unsigned char kFlutterGPUTextureFragIPLR[];
113
114#endif // FLUTTER_LIB_GPU_FIXTURES_H_
constexpr unsigned int kFlutterGPUTextureVertIPLRLength
Definition fixtures.h:108
constexpr unsigned int kFlutterGPUTextureFragIPLRLength
Definition fixtures.h:111
constexpr unsigned int kFlutterGPUUnlitFragIPLRLength
Definition fixtures.h:44
constexpr unsigned int kFlutterGPUUnlitVertIPLRLength
Definition fixtures.h:41
unsigned char kFlutterGPUUnlitFragIPLR[]
Definition fixtures.cc:85
unsigned char kFlutterGPUTextureVertIPLR[]
Definition fixtures.cc:134
unsigned char kFlutterGPUTextureFragIPLR[]
Definition fixtures.cc:213
unsigned char kFlutterGPUUnlitVertIPLR[]
Definition fixtures.cc:11
static constexpr auto kInputPosition
Definition fixtures.h:80
static constexpr std::array< const impeller::ShaderStageIOSlot *, 3 > kAllShaderStageInputs
Definition fixtures.h:94
static constexpr auto kInputColor
Definition fixtures.h:67
static constexpr auto kInterleavedLayout
Definition fixtures.h:100
static constexpr std::array< const impeller::ShaderStageBufferLayout *, 1 > kInterleavedBufferLayout
Definition fixtures.h:105
static constexpr auto kInputTextureCoords
Definition fixtures.h:54
static constexpr std::array< const impeller::ShaderStageBufferLayout *, 1 > kInterleavedBufferLayout
Definition fixtures.h:38
static constexpr std::array< const impeller::ShaderStageIOSlot *, 1 > kAllShaderStageInputs
Definition fixtures.h:29
static constexpr auto kInputPosition
Definition fixtures.h:15
static constexpr auto kInterleavedLayout
Definition fixtures.h:33