blob: 9b3697a367fbaa3f3e63389e6c3c5b13355d816a [file] [log] [blame]
--- webgpu_header
+++ dawn_header
@@
-struct WGPUTextureViewDescriptor;
@@
+struct WGPUTextureViewDescriptor;
@@
-typedef struct WGPUTextureViewDescriptor {
- WGPUChainedStruct * nextInChain;
- WGPUStringView label;
- WGPUTextureFormat format;
- WGPUTextureViewDimension dimension;
- uint32_t baseMipLevel;
- uint32_t mipLevelCount;
- uint32_t baseArrayLayer;
- uint32_t arrayLayerCount;
- WGPUTextureAspect aspect;
- WGPUTextureUsage usage;
-} WGPUTextureViewDescriptor WGPU_STRUCTURE_ATTRIBUTE;
-
-#define WGPU_TEXTURE_VIEW_DESCRIPTOR_INIT _wgpu_MAKE_INIT_STRUCT(WGPUTextureViewDescriptor, { \
- /*.nextInChain=*/NULL _wgpu_COMMA \
- /*.label=*/WGPU_STRING_VIEW_INIT _wgpu_COMMA \
- /*.format=*/WGPUTextureFormat_Undefined _wgpu_COMMA \
- /*.dimension=*/WGPUTextureViewDimension_Undefined _wgpu_COMMA \
- /*.baseMipLevel=*/0 _wgpu_COMMA \
- /*.mipLevelCount=*/WGPU_MIP_LEVEL_COUNT_UNDEFINED _wgpu_COMMA \
- /*.baseArrayLayer=*/0 _wgpu_COMMA \
- /*.arrayLayerCount=*/WGPU_ARRAY_LAYER_COUNT_UNDEFINED _wgpu_COMMA \
- /*.aspect=*/WGPUTextureAspect_Undefined _wgpu_COMMA \
- /*.usage=*/WGPUTextureUsage_None _wgpu_COMMA \
-})
-
@@
+typedef struct WGPUTextureViewDescriptor {
+ WGPUChainedStruct * nextInChain;
+ WGPUStringView label;
+ WGPUTextureFormat format;
+ WGPUTextureViewDimension dimension;
+ uint32_t baseMipLevel;
+ uint32_t mipLevelCount;
+ uint32_t baseArrayLayer;
+ uint32_t arrayLayerCount;
+ WGPUTextureAspect aspect;
+ WGPUTextureUsage usage;
+} WGPUTextureViewDescriptor WGPU_STRUCTURE_ATTRIBUTE;
+
+#define WGPU_TEXTURE_VIEW_DESCRIPTOR_INIT _wgpu_MAKE_INIT_STRUCT(WGPUTextureViewDescriptor, { \
+ /*.nextInChain=*/NULL _wgpu_COMMA \
+ /*.label=*/WGPU_STRING_VIEW_INIT _wgpu_COMMA \
+ /*.format=*/WGPUTextureFormat_Undefined _wgpu_COMMA \
+ /*.dimension=*/WGPUTextureViewDimension_Undefined _wgpu_COMMA \
+ /*.baseMipLevel=*/0 _wgpu_COMMA \
+ /*.mipLevelCount=*/WGPU_MIP_LEVEL_COUNT_UNDEFINED _wgpu_COMMA \
+ /*.baseArrayLayer=*/0 _wgpu_COMMA \
+ /*.arrayLayerCount=*/WGPU_ARRAY_LAYER_COUNT_UNDEFINED _wgpu_COMMA \
+ /*.aspect=*/WGPUTextureAspect_Undefined _wgpu_COMMA \
+ /*.usage=*/WGPUTextureUsage_None _wgpu_COMMA \
+})
+