yum-mirror/VkFFT

git clone https://git.yummers.dev/yum-mirror/VkFFT

Tolmachev DmitriiMetal support in VkFFTba7001c

develop
5.8 KiB173 linesraw
1//-------------------------------------------------------------------------------------------------------------------------------------------------------------
2//
3// Metal/MTLPixelFormat.hpp
4//
5// Copyright 2020-2021 Apple Inc.
6//
7// Licensed under the Apache License, Version 2.0 (the "License");
8// you may not use this file except in compliance with the License.
9// You may obtain a copy of the License at
10//
11//     http://www.apache.org/licenses/LICENSE-2.0
12//
13// Unless required by applicable law or agreed to in writing, software
14// distributed under the License is distributed on an "AS IS" BASIS,
15// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16// See the License for the specific language governing permissions and
17// limitations under the License.
18//
19//-------------------------------------------------------------------------------------------------------------------------------------------------------------
20
21#pragma once
22
23#include "MTLDefines.hpp"
24#include "MTLHeaderBridge.hpp"
25#include "MTLPrivate.hpp"
26
27#include <Foundation/Foundation.hpp>
28
29namespace MTL
30{
31_MTL_ENUM(NS::UInteger, PixelFormat) {
32    PixelFormatInvalid = 0,
33    PixelFormatA8Unorm = 1,
34    PixelFormatR8Unorm = 10,
35    PixelFormatR8Unorm_sRGB = 11,
36    PixelFormatR8Snorm = 12,
37    PixelFormatR8Uint = 13,
38    PixelFormatR8Sint = 14,
39    PixelFormatR16Unorm = 20,
40    PixelFormatR16Snorm = 22,
41    PixelFormatR16Uint = 23,
42    PixelFormatR16Sint = 24,
43    PixelFormatR16Float = 25,
44    PixelFormatRG8Unorm = 30,
45    PixelFormatRG8Unorm_sRGB = 31,
46    PixelFormatRG8Snorm = 32,
47    PixelFormatRG8Uint = 33,
48    PixelFormatRG8Sint = 34,
49    PixelFormatB5G6R5Unorm = 40,
50    PixelFormatA1BGR5Unorm = 41,
51    PixelFormatABGR4Unorm = 42,
52    PixelFormatBGR5A1Unorm = 43,
53    PixelFormatR32Uint = 53,
54    PixelFormatR32Sint = 54,
55    PixelFormatR32Float = 55,
56    PixelFormatRG16Unorm = 60,
57    PixelFormatRG16Snorm = 62,
58    PixelFormatRG16Uint = 63,
59    PixelFormatRG16Sint = 64,
60    PixelFormatRG16Float = 65,
61    PixelFormatRGBA8Unorm = 70,
62    PixelFormatRGBA8Unorm_sRGB = 71,
63    PixelFormatRGBA8Snorm = 72,
64    PixelFormatRGBA8Uint = 73,
65    PixelFormatRGBA8Sint = 74,
66    PixelFormatBGRA8Unorm = 80,
67    PixelFormatBGRA8Unorm_sRGB = 81,
68    PixelFormatRGB10A2Unorm = 90,
69    PixelFormatRGB10A2Uint = 91,
70    PixelFormatRG11B10Float = 92,
71    PixelFormatRGB9E5Float = 93,
72    PixelFormatBGR10A2Unorm = 94,
73    PixelFormatRG32Uint = 103,
74    PixelFormatRG32Sint = 104,
75    PixelFormatRG32Float = 105,
76    PixelFormatRGBA16Unorm = 110,
77    PixelFormatRGBA16Snorm = 112,
78    PixelFormatRGBA16Uint = 113,
79    PixelFormatRGBA16Sint = 114,
80    PixelFormatRGBA16Float = 115,
81    PixelFormatRGBA32Uint = 123,
82    PixelFormatRGBA32Sint = 124,
83    PixelFormatRGBA32Float = 125,
84    PixelFormatBC1_RGBA = 130,
85    PixelFormatBC1_RGBA_sRGB = 131,
86    PixelFormatBC2_RGBA = 132,
87    PixelFormatBC2_RGBA_sRGB = 133,
88    PixelFormatBC3_RGBA = 134,
89    PixelFormatBC3_RGBA_sRGB = 135,
90    PixelFormatBC4_RUnorm = 140,
91    PixelFormatBC4_RSnorm = 141,
92    PixelFormatBC5_RGUnorm = 142,
93    PixelFormatBC5_RGSnorm = 143,
94    PixelFormatBC6H_RGBFloat = 150,
95    PixelFormatBC6H_RGBUfloat = 151,
96    PixelFormatBC7_RGBAUnorm = 152,
97    PixelFormatBC7_RGBAUnorm_sRGB = 153,
98    PixelFormatPVRTC_RGB_2BPP = 160,
99    PixelFormatPVRTC_RGB_2BPP_sRGB = 161,
100    PixelFormatPVRTC_RGB_4BPP = 162,
101    PixelFormatPVRTC_RGB_4BPP_sRGB = 163,
102    PixelFormatPVRTC_RGBA_2BPP = 164,
103    PixelFormatPVRTC_RGBA_2BPP_sRGB = 165,
104    PixelFormatPVRTC_RGBA_4BPP = 166,
105    PixelFormatPVRTC_RGBA_4BPP_sRGB = 167,
106    PixelFormatEAC_R11Unorm = 170,
107    PixelFormatEAC_R11Snorm = 172,
108    PixelFormatEAC_RG11Unorm = 174,
109    PixelFormatEAC_RG11Snorm = 176,
110    PixelFormatEAC_RGBA8 = 178,
111    PixelFormatEAC_RGBA8_sRGB = 179,
112    PixelFormatETC2_RGB8 = 180,
113    PixelFormatETC2_RGB8_sRGB = 181,
114    PixelFormatETC2_RGB8A1 = 182,
115    PixelFormatETC2_RGB8A1_sRGB = 183,
116    PixelFormatASTC_4x4_sRGB = 186,
117    PixelFormatASTC_5x4_sRGB = 187,
118    PixelFormatASTC_5x5_sRGB = 188,
119    PixelFormatASTC_6x5_sRGB = 189,
120    PixelFormatASTC_6x6_sRGB = 190,
121    PixelFormatASTC_8x5_sRGB = 192,
122    PixelFormatASTC_8x6_sRGB = 193,
123    PixelFormatASTC_8x8_sRGB = 194,
124    PixelFormatASTC_10x5_sRGB = 195,
125    PixelFormatASTC_10x6_sRGB = 196,
126    PixelFormatASTC_10x8_sRGB = 197,
127    PixelFormatASTC_10x10_sRGB = 198,
128    PixelFormatASTC_12x10_sRGB = 199,
129    PixelFormatASTC_12x12_sRGB = 200,
130    PixelFormatASTC_4x4_LDR = 204,
131    PixelFormatASTC_5x4_LDR = 205,
132    PixelFormatASTC_5x5_LDR = 206,
133    PixelFormatASTC_6x5_LDR = 207,
134    PixelFormatASTC_6x6_LDR = 208,
135    PixelFormatASTC_8x5_LDR = 210,
136    PixelFormatASTC_8x6_LDR = 211,
137    PixelFormatASTC_8x8_LDR = 212,
138    PixelFormatASTC_10x5_LDR = 213,
139    PixelFormatASTC_10x6_LDR = 214,
140    PixelFormatASTC_10x8_LDR = 215,
141    PixelFormatASTC_10x10_LDR = 216,
142    PixelFormatASTC_12x10_LDR = 217,
143    PixelFormatASTC_12x12_LDR = 218,
144    PixelFormatASTC_4x4_HDR = 222,
145    PixelFormatASTC_5x4_HDR = 223,
146    PixelFormatASTC_5x5_HDR = 224,
147    PixelFormatASTC_6x5_HDR = 225,
148    PixelFormatASTC_6x6_HDR = 226,
149    PixelFormatASTC_8x5_HDR = 228,
150    PixelFormatASTC_8x6_HDR = 229,
151    PixelFormatASTC_8x8_HDR = 230,
152    PixelFormatASTC_10x5_HDR = 231,
153    PixelFormatASTC_10x6_HDR = 232,
154    PixelFormatASTC_10x8_HDR = 233,
155    PixelFormatASTC_10x10_HDR = 234,
156    PixelFormatASTC_12x10_HDR = 235,
157    PixelFormatASTC_12x12_HDR = 236,
158    PixelFormatGBGR422 = 240,
159    PixelFormatBGRG422 = 241,
160    PixelFormatDepth16Unorm = 250,
161    PixelFormatDepth32Float = 252,
162    PixelFormatStencil8 = 253,
163    PixelFormatDepth24Unorm_Stencil8 = 255,
164    PixelFormatDepth32Float_Stencil8 = 260,
165    PixelFormatX32_Stencil8 = 261,
166    PixelFormatX24_Stencil8 = 262,
167    PixelFormatBGRA10_XR = 552,
168    PixelFormatBGRA10_XR_sRGB = 553,
169    PixelFormatBGR10_XR = 554,
170    PixelFormatBGR10_XR_sRGB = 555,
171};
172
173}