@@ -1639,19 +1639,22 @@ typedef struct WGPUBindGroupEntry {
1639
1639
*/
1640
1640
typedef struct WGPUBlendComponent {
1641
1641
/* *
1642
- * [Defaults](@ref SentinelValues) to @ref WGPUBlendOperation_Add.
1642
+ * If set to @ref WGPUBlendOperation_Undefined,
1643
+ * [defaults](@ref SentinelValues) to @ref WGPUBlendOperation_Add.
1643
1644
*
1644
1645
* The `INIT` macro sets this to @ref WGPUBlendOperation_Undefined.
1645
1646
*/
1646
1647
WGPUBlendOperation operation;
1647
1648
/* *
1648
- * [Defaults](@ref SentinelValues) to @ref WGPUBlendFactor_One.
1649
+ * If set to @ref WGPUBlendFactor_Undefined,
1650
+ * [defaults](@ref SentinelValues) to @ref WGPUBlendFactor_One.
1649
1651
*
1650
1652
* The `INIT` macro sets this to @ref WGPUBlendFactor_Undefined.
1651
1653
*/
1652
1654
WGPUBlendFactor srcFactor;
1653
1655
/* *
1654
- * [Defaults](@ref SentinelValues) to @ref WGPUBlendFactor_Zero.
1656
+ * If set to @ref WGPUBlendFactor_Undefined,
1657
+ * [defaults](@ref SentinelValues) to @ref WGPUBlendFactor_Zero.
1655
1658
*
1656
1659
* The `INIT` macro sets this to @ref WGPUBlendFactor_Undefined.
1657
1660
*/
@@ -1673,6 +1676,9 @@ typedef struct WGPUBlendComponent {
1673
1676
typedef struct WGPUBufferBindingLayout {
1674
1677
WGPUChainedStruct const * nextInChain;
1675
1678
/* *
1679
+ * If set to @ref WGPUBufferBindingType_Undefined,
1680
+ * [defaults](@ref SentinelValues) to @ref WGPUBufferBindingType_Uniform.
1681
+ *
1676
1682
* The `INIT` macro sets this to @ref WGPUBufferBindingType_BindingNotUsed.
1677
1683
*/
1678
1684
WGPUBufferBindingType type;
@@ -2263,7 +2269,8 @@ typedef struct WGPUPipelineLayoutDescriptor {
2263
2269
typedef struct WGPUPrimitiveState {
2264
2270
WGPUChainedStruct const * nextInChain;
2265
2271
/* *
2266
- * [Defaults](@ref SentinelValues) to @ref WGPUPrimitiveTopology_TriangleList.
2272
+ * If set to @ref WGPUPrimitiveTopology_Undefined,
2273
+ * [defaults](@ref SentinelValues) to @ref WGPUPrimitiveTopology_TriangleList.
2267
2274
*
2268
2275
* The `INIT` macro sets this to @ref WGPUPrimitiveTopology_Undefined.
2269
2276
*/
@@ -2273,13 +2280,15 @@ typedef struct WGPUPrimitiveState {
2273
2280
*/
2274
2281
WGPUIndexFormat stripIndexFormat;
2275
2282
/* *
2276
- * [Defaults](@ref SentinelValues) to @ref WGPUFrontFace_CCW.
2283
+ * If set to @ref WGPUFrontFace_Undefined,
2284
+ * [defaults](@ref SentinelValues) to @ref WGPUFrontFace_CCW.
2277
2285
*
2278
2286
* The `INIT` macro sets this to @ref WGPUFrontFace_Undefined.
2279
2287
*/
2280
2288
WGPUFrontFace frontFace;
2281
2289
/* *
2282
- * [Defaults](@ref SentinelValues) to @ref WGPUCullMode_None.
2290
+ * If set to @ref WGPUCullMode_Undefined,
2291
+ * [defaults](@ref SentinelValues) to @ref WGPUCullMode_None.
2283
2292
*
2284
2293
* The `INIT` macro sets this to @ref WGPUCullMode_Undefined.
2285
2294
*/
@@ -2515,7 +2524,8 @@ typedef struct WGPURequestAdapterOptions {
2515
2524
/* *
2516
2525
* "Feature level" for the adapter request. If an adapter is returned, it must support the features and limits in the requested feature level.
2517
2526
*
2518
- * [Defaults](@ref SentinelValues) to @ref WGPUFeatureLevel_Core.
2527
+ * If set to @ref WGPUFeatureLevel_Undefined,
2528
+ * [defaults](@ref SentinelValues) to @ref WGPUFeatureLevel_Core.
2519
2529
* Additionally, implementations may ignore @ref WGPUFeatureLevel_Compatibility
2520
2530
* and provide @ref WGPUFeatureLevel_Core instead.
2521
2531
*
@@ -2567,6 +2577,9 @@ typedef struct WGPURequestAdapterOptions {
2567
2577
typedef struct WGPUSamplerBindingLayout {
2568
2578
WGPUChainedStruct const * nextInChain;
2569
2579
/* *
2580
+ * If set to @ref WGPUSamplerBindingType_Undefined,
2581
+ * [defaults](@ref SentinelValues) to @ref WGPUSamplerBindingType_Filtering.
2582
+ *
2570
2583
* The `INIT` macro sets this to @ref WGPUSamplerBindingType_BindingNotUsed.
2571
2584
*/
2572
2585
WGPUSamplerBindingType type;
@@ -2592,37 +2605,43 @@ typedef struct WGPUSamplerDescriptor {
2592
2605
*/
2593
2606
WGPUStringView label;
2594
2607
/* *
2595
- * [Defaults](@ref SentinelValues) to @ref WGPUAddressMode_ClampToEdge.
2608
+ * If set to @ref WGPUAddressMode_Undefined,
2609
+ * [defaults](@ref SentinelValues) to @ref WGPUAddressMode_ClampToEdge.
2596
2610
*
2597
2611
* The `INIT` macro sets this to @ref WGPUAddressMode_Undefined.
2598
2612
*/
2599
2613
WGPUAddressMode addressModeU;
2600
2614
/* *
2601
- * [Defaults](@ref SentinelValues) to @ref WGPUAddressMode_ClampToEdge.
2615
+ * If set to @ref WGPUAddressMode_Undefined,
2616
+ * [defaults](@ref SentinelValues) to @ref WGPUAddressMode_ClampToEdge.
2602
2617
*
2603
2618
* The `INIT` macro sets this to @ref WGPUAddressMode_Undefined.
2604
2619
*/
2605
2620
WGPUAddressMode addressModeV;
2606
2621
/* *
2607
- * [Defaults](@ref SentinelValues) to @ref WGPUAddressMode_ClampToEdge.
2622
+ * If set to @ref WGPUAddressMode_Undefined,
2623
+ * [defaults](@ref SentinelValues) to @ref WGPUAddressMode_ClampToEdge.
2608
2624
*
2609
2625
* The `INIT` macro sets this to @ref WGPUAddressMode_Undefined.
2610
2626
*/
2611
2627
WGPUAddressMode addressModeW;
2612
2628
/* *
2613
- * [Defaults](@ref SentinelValues) to @ref WGPUFilterMode_Nearest.
2629
+ * If set to @ref WGPUFilterMode_Undefined,
2630
+ * [defaults](@ref SentinelValues) to @ref WGPUFilterMode_Nearest.
2614
2631
*
2615
2632
* The `INIT` macro sets this to @ref WGPUFilterMode_Undefined.
2616
2633
*/
2617
2634
WGPUFilterMode magFilter;
2618
2635
/* *
2619
- * [Defaults](@ref SentinelValues) to @ref WGPUFilterMode_Nearest.
2636
+ * If set to @ref WGPUFilterMode_Undefined,
2637
+ * [defaults](@ref SentinelValues) to @ref WGPUFilterMode_Nearest.
2620
2638
*
2621
2639
* The `INIT` macro sets this to @ref WGPUFilterMode_Undefined.
2622
2640
*/
2623
2641
WGPUFilterMode minFilter;
2624
2642
/* *
2625
- * [Defaults](@ref SentinelValues) to @ref WGPUMipmapFilterMode_Nearest.
2643
+ * If set to @ref WGPUFilterMode_Undefined,
2644
+ * [defaults](@ref SentinelValues) to @ref WGPUMipmapFilterMode_Nearest.
2626
2645
*
2627
2646
* The `INIT` macro sets this to @ref WGPUMipmapFilterMode_Undefined.
2628
2647
*/
@@ -2740,25 +2759,29 @@ typedef struct WGPUShaderSourceWGSL {
2740
2759
*/
2741
2760
typedef struct WGPUStencilFaceState {
2742
2761
/* *
2743
- * [Defaults](@ref SentinelValues) to @ref WGPUCompareFunction_Always.
2762
+ * If set to @ref WGPUCompareFunction_Undefined,
2763
+ * [defaults](@ref SentinelValues) to @ref WGPUCompareFunction_Always.
2744
2764
*
2745
2765
* The `INIT` macro sets this to @ref WGPUCompareFunction_Undefined.
2746
2766
*/
2747
2767
WGPUCompareFunction compare;
2748
2768
/* *
2749
- * [Defaults](@ref SentinelValues) to @ref WGPUStencilOperation_Keep.
2769
+ * If set to @ref WGPUStencilOperation_Undefined,
2770
+ * [defaults](@ref SentinelValues) to @ref WGPUStencilOperation_Keep.
2750
2771
*
2751
2772
* The `INIT` macro sets this to @ref WGPUStencilOperation_Undefined.
2752
2773
*/
2753
2774
WGPUStencilOperation failOp;
2754
2775
/* *
2755
- * [Defaults](@ref SentinelValues) to @ref WGPUStencilOperation_Keep.
2776
+ * If set to @ref WGPUStencilOperation_Undefined,
2777
+ * [defaults](@ref SentinelValues) to @ref WGPUStencilOperation_Keep.
2756
2778
*
2757
2779
* The `INIT` macro sets this to @ref WGPUStencilOperation_Undefined.
2758
2780
*/
2759
2781
WGPUStencilOperation depthFailOp;
2760
2782
/* *
2761
- * [Defaults](@ref SentinelValues) to @ref WGPUStencilOperation_Keep.
2783
+ * If set to @ref WGPUStencilOperation_Undefined,
2784
+ * [defaults](@ref SentinelValues) to @ref WGPUStencilOperation_Keep.
2762
2785
*
2763
2786
* The `INIT` macro sets this to @ref WGPUStencilOperation_Undefined.
2764
2787
*/
@@ -2781,6 +2804,9 @@ typedef struct WGPUStencilFaceState {
2781
2804
typedef struct WGPUStorageTextureBindingLayout {
2782
2805
WGPUChainedStruct const * nextInChain;
2783
2806
/* *
2807
+ * If set to @ref WGPUStorageTextureAccess_Undefined,
2808
+ * [defaults](@ref SentinelValues) to @ref WGPUStorageTextureAccess_WriteOnly.
2809
+ *
2784
2810
* The `INIT` macro sets this to @ref WGPUStorageTextureAccess_BindingNotUsed.
2785
2811
*/
2786
2812
WGPUStorageTextureAccess access;
@@ -2789,7 +2815,8 @@ typedef struct WGPUStorageTextureBindingLayout {
2789
2815
*/
2790
2816
WGPUTextureFormat format;
2791
2817
/* *
2792
- * [Defaults](@ref SentinelValues) to @ref WGPUTextureViewDimension_2D.
2818
+ * If set to @ref WGPUTextureViewDimension_Undefined,
2819
+ * [defaults](@ref SentinelValues) to @ref WGPUTextureViewDimension_2D.
2793
2820
*
2794
2821
* The `INIT` macro sets this to @ref WGPUTextureViewDimension_Undefined.
2795
2822
*/
@@ -2963,13 +2990,18 @@ typedef struct WGPUSurfaceConfiguration {
2963
2990
/* *
2964
2991
* How the surface's frames will be composited on the screen.
2965
2992
*
2993
+ * If set to @ref WGPUCompositeAlphaMode_Auto,
2994
+ * [defaults] to @ref WGPUCompositeAlphaMode_Inherit in native (allowing the mode
2995
+ * to be configured externally), and to @ref WGPUCompositeAlphaMode_Opaque in Wasm.
2996
+ *
2966
2997
* The `INIT` macro sets this to @ref WGPUCompositeAlphaMode_Auto.
2967
2998
*/
2968
2999
WGPUCompositeAlphaMode alphaMode;
2969
3000
/* *
2970
3001
* When and in which order the surface's frames will be shown on the screen.
2971
3002
*
2972
- * [Defaults](@ref SentinelValues) to @ref WGPUPresentMode_Fifo.
3003
+ * If set to @ref WGPUPresentMode_Undefined,
3004
+ * [defaults](@ref SentinelValues) to @ref WGPUPresentMode_Fifo.
2973
3005
*
2974
3006
* The `INIT` macro sets this to @ref WGPUPresentMode_Undefined.
2975
3007
*/
@@ -3269,11 +3301,15 @@ typedef struct WGPUTexelCopyBufferLayout {
3269
3301
typedef struct WGPUTextureBindingLayout {
3270
3302
WGPUChainedStruct const * nextInChain;
3271
3303
/* *
3304
+ * If set to @ref WGPUTextureSampleType_Undefined,
3305
+ * [defaults](@ref SentinelValues) to @ref WGPUTextureSampleType_Float.
3306
+ *
3272
3307
* The `INIT` macro sets this to @ref WGPUTextureSampleType_BindingNotUsed.
3273
3308
*/
3274
3309
WGPUTextureSampleType sampleType;
3275
3310
/* *
3276
- * [Defaults](@ref SentinelValues) to @ref WGPUTextureViewDimension_2D.
3311
+ * If set to @ref WGPUTextureViewDimension_Undefined,
3312
+ * [defaults](@ref SentinelValues) to @ref WGPUTextureViewDimension_2D.
3277
3313
*
3278
3314
* The `INIT` macro sets this to @ref WGPUTextureViewDimension_Undefined.
3279
3315
*/
@@ -3330,7 +3366,8 @@ typedef struct WGPUTextureViewDescriptor {
3330
3366
*/
3331
3367
uint32_t arrayLayerCount;
3332
3368
/* *
3333
- * [Defaults](@ref SentinelValues) to @ref WGPUTextureAspect_All.
3369
+ * If set to @ref WGPUTextureAspect_Undefined,
3370
+ * [defaults](@ref SentinelValues) to @ref WGPUTextureAspect_All.
3334
3371
*
3335
3372
* The `INIT` macro sets this to @ref WGPUTextureAspect_Undefined.
3336
3373
*/
@@ -3824,7 +3861,8 @@ typedef struct WGPUTexelCopyTextureInfo {
3824
3861
*/
3825
3862
WGPUOrigin3D origin;
3826
3863
/* *
3827
- * [Defaults](@ref SentinelValues) to @ref WGPUTextureAspect_All.
3864
+ * If set to @ref WGPUTextureAspect_Undefined,
3865
+ * [defaults](@ref SentinelValues) to @ref WGPUTextureAspect_All.
3828
3866
*
3829
3867
* The `INIT` macro sets this to @ref WGPUTextureAspect_Undefined.
3830
3868
*/
@@ -3857,7 +3895,8 @@ typedef struct WGPUTextureDescriptor {
3857
3895
*/
3858
3896
WGPUTextureUsage usage;
3859
3897
/* *
3860
- * [Defaults](@ref SentinelValues) to @ref WGPUTextureDimension_2D.
3898
+ * If set to @ref WGPUTextureDimension_Undefined,
3899
+ * [defaults](@ref SentinelValues) to @ref WGPUTextureDimension_2D.
3861
3900
*
3862
3901
* The `INIT` macro sets this to @ref WGPUTextureDimension_Undefined.
3863
3902
*/
0 commit comments