Skip to content

Commit

Permalink
Write overview
Browse files Browse the repository at this point in the history
  • Loading branch information
eliemichel committed Mar 3, 2024
1 parent 48724f4 commit 86e9533
Show file tree
Hide file tree
Showing 33 changed files with 2,206 additions and 485 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/gen-docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:
gen-docs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- uses: actions/setup-go@v4
with:
go-version: '>=1.21.0'
Expand Down
608 changes: 447 additions & 161 deletions doc/src/api.md

Large diffs are not rendered by default.

88 changes: 44 additions & 44 deletions doc/src/enum/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,48 +2,48 @@

**NB** All enumerations also have an extra values ending with `_Force32` that is here to ensure that all compilers use the same underlying representation for the enum values. This value must never be used.

- [`WGPUAdapterType`](AdapterType)
- [`WGPUAddressMode`](AddressMode)
- [`WGPUBackendType`](BackendType)
- [`WGPUBlendFactor`](BlendFactor)
- [`WGPUBlendOperation`](BlendOperation)
- [`WGPUBufferBindingType`](BufferBindingType)
- [`WGPUBufferMapAsyncStatus`](BufferMapAsyncStatus)
- [`WGPUBufferMapState`](BufferMapState)
- [`WGPUCompareFunction`](CompareFunction)
- [`WGPUCompilationInfoRequestStatus`](CompilationInfoRequestStatus)
- [`WGPUCompilationMessageType`](CompilationMessageType)
- [`WGPUCompositeAlphaMode`](CompositeAlphaMode)
- [`WGPUCreatePipelineAsyncStatus`](CreatePipelineAsyncStatus)
- [`WGPUCullMode`](CullMode)
- [`WGPUDeviceLostReason`](DeviceLostReason)
- [`WGPUErrorFilter`](ErrorFilter)
- [`WGPUErrorType`](ErrorType)
- [`WGPUFeatureName`](FeatureName)
- [`WGPUFilterMode`](FilterMode)
- [`WGPUFrontFace`](FrontFace)
- [`WGPUIndexFormat`](IndexFormat)
- [`WGPULoadOp`](LoadOp)
- [`WGPUMipmapFilterMode`](MipmapFilterMode)
- [`WGPUPowerPreference`](PowerPreference)
- [`WGPUPresentMode`](PresentMode)
- [`WGPUPrimitiveTopology`](PrimitiveTopology)
- [`WGPUQueryType`](QueryType)
- [`WGPUQueueWorkDoneStatus`](QueueWorkDoneStatus)
- [`WGPURequestAdapterStatus`](RequestAdapterStatus)
- [`WGPURequestDeviceStatus`](RequestDeviceStatus)
- [`WGPUSType`](SType)
- [`WGPUSamplerBindingType`](SamplerBindingType)
- [`WGPUStencilOperation`](StencilOperation)
- [`WGPUStorageTextureAccess`](StorageTextureAccess)
- [`WGPUStoreOp`](StoreOp)
- [`WGPUSurfaceGetCurrentTextureStatus`](SurfaceGetCurrentTextureStatus)
- [`WGPUTextureAspect`](TextureAspect)
- [`WGPUTextureDimension`](TextureDimension)
- [`WGPUTextureFormat`](TextureFormat)
- [`WGPUTextureSampleType`](TextureSampleType)
- [`WGPUTextureViewDimension`](TextureViewDimension)
- [`WGPUVertexFormat`](VertexFormat)
- [`WGPUVertexStepMode`](VertexStepMode)
- [`WGPUWGSLFeatureName`](WGSLFeatureName)
- [`WGPUAdapterType`](AdapterType.md)
- [`WGPUAddressMode`](AddressMode.md)
- [`WGPUBackendType`](BackendType.md)
- [`WGPUBlendFactor`](BlendFactor.md)
- [`WGPUBlendOperation`](BlendOperation.md)
- [`WGPUBufferBindingType`](BufferBindingType.md)
- [`WGPUBufferMapAsyncStatus`](BufferMapAsyncStatus.md)
- [`WGPUBufferMapState`](BufferMapState.md)
- [`WGPUCompareFunction`](CompareFunction.md)
- [`WGPUCompilationInfoRequestStatus`](CompilationInfoRequestStatus.md)
- [`WGPUCompilationMessageType`](CompilationMessageType.md)
- [`WGPUCompositeAlphaMode`](CompositeAlphaMode.md)
- [`WGPUCreatePipelineAsyncStatus`](CreatePipelineAsyncStatus.md)
- [`WGPUCullMode`](CullMode.md)
- [`WGPUDeviceLostReason`](DeviceLostReason.md)
- [`WGPUErrorFilter`](ErrorFilter.md)
- [`WGPUErrorType`](ErrorType.md)
- [`WGPUFeatureName`](FeatureName.md)
- [`WGPUFilterMode`](FilterMode.md)
- [`WGPUFrontFace`](FrontFace.md)
- [`WGPUIndexFormat`](IndexFormat.md)
- [`WGPULoadOp`](LoadOp.md)
- [`WGPUMipmapFilterMode`](MipmapFilterMode.md)
- [`WGPUPowerPreference`](PowerPreference.md)
- [`WGPUPresentMode`](PresentMode.md)
- [`WGPUPrimitiveTopology`](PrimitiveTopology.md)
- [`WGPUQueryType`](QueryType.md)
- [`WGPUQueueWorkDoneStatus`](QueueWorkDoneStatus.md)
- [`WGPURequestAdapterStatus`](RequestAdapterStatus.md)
- [`WGPURequestDeviceStatus`](RequestDeviceStatus.md)
- [`WGPUSType`](SType.md)
- [`WGPUSamplerBindingType`](SamplerBindingType.md)
- [`WGPUStencilOperation`](StencilOperation.md)
- [`WGPUStorageTextureAccess`](StorageTextureAccess.md)
- [`WGPUStoreOp`](StoreOp.md)
- [`WGPUSurfaceGetCurrentTextureStatus`](SurfaceGetCurrentTextureStatus.md)
- [`WGPUTextureAspect`](TextureAspect.md)
- [`WGPUTextureDimension`](TextureDimension.md)
- [`WGPUTextureFormat`](TextureFormat.md)
- [`WGPUTextureSampleType`](TextureSampleType.md)
- [`WGPUTextureViewDimension`](TextureViewDimension.md)
- [`WGPUVertexFormat`](VertexFormat.md)
- [`WGPUVertexStepMode`](VertexStepMode.md)
- [`WGPUWGSLFeatureName`](WGSLFeatureName.md)

12 changes: 11 additions & 1 deletion doc/src/index.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,13 @@
# WebGPU Native

See [overview](overview).
**NB** *This documentation is a Work In Progress.*

This is the home of WebGPU Native specification. We define here the standard `webgpu.h` header that all implementations of WebGPU should implement.

## Getting started

The [overview](overview.md) page introduces the key entities that are used by the API and is a good place to start. The [API index](api.md) lists all symbols defined by the C header and can be used for fast navigation.

## Contributing

This documentation is automatically generated from [`webgpu.yml`](https://github.com/webgpu-native/webgpu-headers/blob/main/webgpu.yml), so if you spot any mistake please report it in [the issues](https://github.com/webgpu-native/webgpu-headers/issues) and/or provide a patch through a [pull request](https://github.com/webgpu-native/webgpu-headers/pulls).
57 changes: 50 additions & 7 deletions doc/src/object/Adapter.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,18 @@ size_t wgpuAdapterEnumerateFeatures(WGPUAdapter adapter, WGPUFeatureName * featu
TODO
**Arguments:**
- TODO
- `features` (`WGPUFeatureName *`):
TODO
Expand All @@ -48,9 +57,18 @@ Get the limits that the adapter supports. This is used to drive the
choice of required limits in {device_descriptor.required_limits}.




**Arguments:**

- TODO

- `limits` (`WGPUSupportedLimits *`):


TODO






Expand All @@ -74,9 +92,18 @@ void wgpuAdapterGetProperties(WGPUAdapter adapter, WGPUAdapterProperties * prope
TODO
**Arguments:**
- TODO
- `properties` (`WGPUAdapterProperties *`):
TODO
Expand All @@ -94,9 +121,18 @@ WGPUBool wgpuAdapterHasFeature(WGPUAdapter adapter, WGPUFeatureName feature)
TODO




**Arguments:**

- TODO

- `feature` (`WGPUFeatureName`):


TODO






Expand All @@ -120,9 +156,7 @@ void wgpuAdapterRequestAdapterInfo(WGPUAdapter adapter, WGPUAdapterRequestAdapte
TODO
**Arguments:**
- TODO
Expand All @@ -140,9 +174,18 @@ void wgpuAdapterRequestDevice(WGPUAdapter adapter, WGPU_NULLABLE WGPUDeviceDescr
TODO




**Arguments:**

- TODO

- `descriptor` (`WGPUDeviceDescriptor const *`, **nullable**):


TODO






11 changes: 10 additions & 1 deletion doc/src/object/BindGroup.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,18 @@ void wgpuBindGroupSetLabel(WGPUBindGroup bindGroup, char const * label)
TODO
**Arguments:**
- TODO
- `label` (`char const *`):
TODO
11 changes: 10 additions & 1 deletion doc/src/object/BindGroupLayout.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,18 @@ void wgpuBindGroupLayoutSetLabel(WGPUBindGroupLayout bindGroupLayout, char const
TODO
**Arguments:**
- TODO
- `label` (`char const *`):
TODO
Loading

0 comments on commit 86e9533

Please sign in to comment.