Skip to content

Commit

Permalink
fold DepthClipControl into PrimitiveState (#311)
Browse files Browse the repository at this point in the history
  • Loading branch information
beaufortfrancois authored Jul 18, 2024
1 parent 5da13b5 commit 7b1bed0
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 24 deletions.
14 changes: 4 additions & 10 deletions webgpu.h
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,6 @@ struct WGPULimits;
struct WGPUMultisampleState;
struct WGPUOrigin3D;
struct WGPUPipelineLayoutDescriptor;
struct WGPUPrimitiveDepthClipControl;
struct WGPUPrimitiveState;
struct WGPUQuerySetDescriptor;
struct WGPUQueueDescriptor;
Expand Down Expand Up @@ -509,10 +508,9 @@ typedef enum WGPUSType {
WGPUSType_SurfaceFromCanvasHTMLSelector = 0x00000004,
WGPUSType_ShaderModuleSPIRV = 0x00000005,
WGPUSType_ShaderModuleWGSL = 0x00000006,
WGPUSType_PrimitiveDepthClipControl = 0x00000007,
WGPUSType_SurfaceFromWaylandSurface = 0x00000008,
WGPUSType_SurfaceFromAndroidNativeWindow = 0x00000009,
WGPUSType_SurfaceFromXcbWindow = 0x0000000A,
WGPUSType_SurfaceFromWaylandSurface = 0x00000007,
WGPUSType_SurfaceFromAndroidNativeWindow = 0x00000008,
WGPUSType_SurfaceFromXcbWindow = 0x00000009,
WGPUSType_RenderPassDescriptorMaxDrawCount = 0x0000000F,
WGPUSType_Force32 = 0x7FFFFFFF
} WGPUSType WGPU_ENUM_ATTRIBUTE;
Expand Down Expand Up @@ -1094,17 +1092,13 @@ typedef struct WGPUPipelineLayoutDescriptor {
WGPUBindGroupLayout const * bindGroupLayouts;
} WGPUPipelineLayoutDescriptor WGPU_STRUCTURE_ATTRIBUTE;

typedef struct WGPUPrimitiveDepthClipControl {
WGPUChainedStruct chain;
WGPUBool unclippedDepth;
} WGPUPrimitiveDepthClipControl WGPU_STRUCTURE_ATTRIBUTE;

typedef struct WGPUPrimitiveState {
WGPUChainedStruct const * nextInChain;
WGPUPrimitiveTopology topology;
WGPUIndexFormat stripIndexFormat;
WGPUFrontFace frontFace;
WGPUCullMode cullMode;
WGPUBool unclippedDepth;
} WGPUPrimitiveState WGPU_STRUCTURE_ATTRIBUTE;

typedef struct WGPUQuerySetDescriptor {
Expand Down
18 changes: 4 additions & 14 deletions webgpu.yml
Original file line number Diff line number Diff line change
Expand Up @@ -711,9 +711,6 @@ enums:
- name: shader_module_WGSL
doc: |
TODO
- name: primitive_depth_clip_control
doc: |
TODO
- name: surface_from_wayland_surface
doc: |
TODO
Expand Down Expand Up @@ -2161,17 +2158,6 @@ structs:
TODO
type: array<object.bind_group_layout>
pointer: immutable
- name: primitive_depth_clip_control
doc: |
TODO
type: extension_in
extends:
- primitive_state
members:
- name: unclipped_depth
doc: |
TODO
type: bool
- name: primitive_state
doc: |
TODO
Expand All @@ -2193,6 +2179,10 @@ structs:
doc: |
TODO
type: enum.cull_mode
- name: unclipped_depth
doc: |
TODO
type: bool
- name: programmable_stage_descriptor
doc: |
TODO
Expand Down

0 comments on commit 7b1bed0

Please sign in to comment.