Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fold DepthClipControl into PrimitiveState #311

Merged
merged 2 commits into from
Jul 18, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading