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_ReadSwizzle_DEFINED 9 #define skgpu_graphite_ReadSwizzle_DEFINED 10 11 namespace skgpu::graphite { 12 /** 13 * Enumerate the few possible read and write swizzle options for smaller storage. 14 */ 15 enum class ReadSwizzle { 16 kRGBA, // Default 17 kRGB1, 18 kRRR1, 19 kBGRA, 20 k000R, 21 }; 22 23 } // namespace skgpu::graphite 24 25 #endif // skgpu_graphite_ReadSwizzle_DEFINED 26