@@ -303,7 +303,6 @@ struct WGPUTexelCopyBufferLayout;
303303struct WGPUTextureBindingLayout ;
304304struct WGPUTextureBindingViewDimension ;
305305struct WGPUTextureComponentSwizzle ;
306- struct WGPUTextureViewDescriptor ;
307306struct WGPUVertexAttribute ;
308307struct WGPUBindGroupEntry ;
309308struct WGPUBindGroupLayoutEntry ;
@@ -330,6 +329,7 @@ struct WGPUColorTargetState;
330329struct WGPUComputePipelineDescriptor ;
331330struct WGPUDeviceDescriptor ;
332331struct WGPURenderPassDescriptor ;
332+ struct WGPUTextureViewDescriptor ;
333333struct WGPUVertexState ;
334334struct WGPUFragmentState ;
335335struct WGPURenderPipelineDescriptor ;
@@ -3528,70 +3528,6 @@ typedef struct WGPUTextureComponentSwizzle {
35283528 /* .a=*/ WGPUComponentSwizzle_Undefined _wgpu_COMMA \
35293529})
35303530
3531- /* *
3532- * Default values can be set using @ref WGPU_TEXTURE_VIEW_DESCRIPTOR_INIT as initializer.
3533- */
3534- typedef struct WGPUTextureViewDescriptor {
3535- WGPUChainedStruct * nextInChain;
3536- /* *
3537- * This is a \ref NonNullInputString.
3538- *
3539- * The `INIT` macro sets this to @ref WGPU_STRING_VIEW_INIT.
3540- */
3541- WGPUStringView label;
3542- /* *
3543- * The `INIT` macro sets this to @ref WGPUTextureFormat_Undefined.
3544- */
3545- WGPUTextureFormat format;
3546- /* *
3547- * The `INIT` macro sets this to @ref WGPUTextureViewDimension_Undefined.
3548- */
3549- WGPUTextureViewDimension dimension;
3550- /* *
3551- * The `INIT` macro sets this to `0`.
3552- */
3553- uint32_t baseMipLevel;
3554- /* *
3555- * The `INIT` macro sets this to @ref WGPU_MIP_LEVEL_COUNT_UNDEFINED.
3556- */
3557- uint32_t mipLevelCount;
3558- /* *
3559- * The `INIT` macro sets this to `0`.
3560- */
3561- uint32_t baseArrayLayer;
3562- /* *
3563- * The `INIT` macro sets this to @ref WGPU_ARRAY_LAYER_COUNT_UNDEFINED.
3564- */
3565- uint32_t arrayLayerCount;
3566- /* *
3567- * If set to @ref WGPUTextureAspect_Undefined,
3568- * [defaults](@ref SentinelValues) to @ref WGPUTextureAspect_All.
3569- *
3570- * The `INIT` macro sets this to @ref WGPUTextureAspect_Undefined.
3571- */
3572- WGPUTextureAspect aspect;
3573- /* *
3574- * The `INIT` macro sets this to @ref WGPUTextureUsage_None.
3575- */
3576- WGPUTextureUsage usage;
3577- } WGPUTextureViewDescriptor WGPU_STRUCTURE_ATTRIBUTE;
3578-
3579- /* *
3580- * Initializer for @ref WGPUTextureViewDescriptor.
3581- */
3582- #define WGPU_TEXTURE_VIEW_DESCRIPTOR_INIT _wgpu_MAKE_INIT_STRUCT (WGPUTextureViewDescriptor, { \
3583- /* .nextInChain=*/ NULL _wgpu_COMMA \
3584- /* .label=*/ WGPU_STRING_VIEW_INIT _wgpu_COMMA \
3585- /* .format=*/ WGPUTextureFormat_Undefined _wgpu_COMMA \
3586- /* .dimension=*/ WGPUTextureViewDimension_Undefined _wgpu_COMMA \
3587- /* .baseMipLevel=*/ 0 _wgpu_COMMA \
3588- /* .mipLevelCount=*/ WGPU_MIP_LEVEL_COUNT_UNDEFINED _wgpu_COMMA \
3589- /* .baseArrayLayer=*/ 0 _wgpu_COMMA \
3590- /* .arrayLayerCount=*/ WGPU_ARRAY_LAYER_COUNT_UNDEFINED _wgpu_COMMA \
3591- /* .aspect=*/ WGPUTextureAspect_Undefined _wgpu_COMMA \
3592- /* .usage=*/ WGPUTextureUsage_None _wgpu_COMMA \
3593- })
3594-
35953531/* *
35963532 * Default values can be set using @ref WGPU_VERTEX_ATTRIBUTE_INIT as initializer.
35973533 */
@@ -4721,6 +4657,70 @@ typedef struct WGPURenderPassDescriptor {
47214657 /* .timestampWrites=*/ NULL _wgpu_COMMA \
47224658})
47234659
4660+ /* *
4661+ * Default values can be set using @ref WGPU_TEXTURE_VIEW_DESCRIPTOR_INIT as initializer.
4662+ */
4663+ typedef struct WGPUTextureViewDescriptor {
4664+ WGPUChainedStruct * nextInChain;
4665+ /* *
4666+ * This is a \ref NonNullInputString.
4667+ *
4668+ * The `INIT` macro sets this to @ref WGPU_STRING_VIEW_INIT.
4669+ */
4670+ WGPUStringView label;
4671+ /* *
4672+ * The `INIT` macro sets this to @ref WGPUTextureFormat_Undefined.
4673+ */
4674+ WGPUTextureFormat format;
4675+ /* *
4676+ * The `INIT` macro sets this to @ref WGPUTextureViewDimension_Undefined.
4677+ */
4678+ WGPUTextureViewDimension dimension;
4679+ /* *
4680+ * The `INIT` macro sets this to `0`.
4681+ */
4682+ uint32_t baseMipLevel;
4683+ /* *
4684+ * The `INIT` macro sets this to @ref WGPU_MIP_LEVEL_COUNT_UNDEFINED.
4685+ */
4686+ uint32_t mipLevelCount;
4687+ /* *
4688+ * The `INIT` macro sets this to `0`.
4689+ */
4690+ uint32_t baseArrayLayer;
4691+ /* *
4692+ * The `INIT` macro sets this to @ref WGPU_ARRAY_LAYER_COUNT_UNDEFINED.
4693+ */
4694+ uint32_t arrayLayerCount;
4695+ /* *
4696+ * If set to @ref WGPUTextureAspect_Undefined,
4697+ * [defaults](@ref SentinelValues) to @ref WGPUTextureAspect_All.
4698+ *
4699+ * The `INIT` macro sets this to @ref WGPUTextureAspect_Undefined.
4700+ */
4701+ WGPUTextureAspect aspect;
4702+ /* *
4703+ * The `INIT` macro sets this to @ref WGPUTextureUsage_None.
4704+ */
4705+ WGPUTextureUsage usage;
4706+ } WGPUTextureViewDescriptor WGPU_STRUCTURE_ATTRIBUTE;
4707+
4708+ /* *
4709+ * Initializer for @ref WGPUTextureViewDescriptor.
4710+ */
4711+ #define WGPU_TEXTURE_VIEW_DESCRIPTOR_INIT _wgpu_MAKE_INIT_STRUCT (WGPUTextureViewDescriptor, { \
4712+ /* .nextInChain=*/ NULL _wgpu_COMMA \
4713+ /* .label=*/ WGPU_STRING_VIEW_INIT _wgpu_COMMA \
4714+ /* .format=*/ WGPUTextureFormat_Undefined _wgpu_COMMA \
4715+ /* .dimension=*/ WGPUTextureViewDimension_Undefined _wgpu_COMMA \
4716+ /* .baseMipLevel=*/ 0 _wgpu_COMMA \
4717+ /* .mipLevelCount=*/ WGPU_MIP_LEVEL_COUNT_UNDEFINED _wgpu_COMMA \
4718+ /* .baseArrayLayer=*/ 0 _wgpu_COMMA \
4719+ /* .arrayLayerCount=*/ WGPU_ARRAY_LAYER_COUNT_UNDEFINED _wgpu_COMMA \
4720+ /* .aspect=*/ WGPUTextureAspect_Undefined _wgpu_COMMA \
4721+ /* .usage=*/ WGPUTextureUsage_None _wgpu_COMMA \
4722+ })
4723+
47244724/* *
47254725 * Default values can be set using @ref WGPU_VERTEX_STATE_INIT as initializer.
47264726 */
0 commit comments