Commit graph

2665 commits

Author SHA1 Message Date
Stephen Gutekanst
801d772752 gpu: add type-safety for chaining dawn.InstanceDescriptor
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2022-08-16 20:49:59 -07:00
Stephen Gutekanst
8462427524 gpu: add type-safety for chaining dawn.TextureInternalUsageDescriptor
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2022-08-16 20:45:24 -07:00
Stephen Gutekanst
e4ee5e221b gpu: add type-safety for chaining dawn.CacheDeviceDescriptor
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2022-08-16 20:43:41 -07:00
Stephen Gutekanst
7fa4075714 gpu: add type-safety for chaining dawn.TogglesDeviceDescriptor
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2022-08-16 20:42:45 -07:00
Stephen Gutekanst
8826cfb7a0 gpu: add type-safety for chaining ExternalTexture.BindingLayout
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2022-08-16 20:36:12 -07:00
Stephen Gutekanst
1f0b50ba13 gpu: add type-safety for chaining ExternalTexture.BindingEntry
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2022-08-16 20:32:03 -07:00
Stephen Gutekanst
34ea41e319 gpu: add type-safety for chaining RenderPassDescriptorMaxDrawCount
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2022-08-16 20:17:59 -07:00
Stephen Gutekanst
9a36a74e49 gpu: add type-safety for chaining PrimitiveDepthClipControl
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2022-08-16 20:16:16 -07:00
Stephen Gutekanst
52520d04ef gpu: improve type naming for next_in_chain extension types
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2022-08-16 20:12:25 -07:00
Stephen Gutekanst
26755e0837 gpu: update TODOs, give all chain fields default values
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2022-08-16 19:44:57 -07:00
Stephen Gutekanst
093be3aa53 gpu: add CompilationInfo.getMessages slice helper
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2022-08-16 19:32:45 -07:00
Stephen Gutekanst
6497f0d27b gpu: add FragmentState.init slice helper
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2022-08-16 19:05:28 -07:00
Stephen Gutekanst
772eb9b89d gpu: add VertexState.init slice helper
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2022-08-16 19:02:51 -07:00
Stephen Gutekanst
8cd2fb3f19 gpu: add VertexBufferLayout.init slice helper
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2022-08-16 18:59:52 -07:00
Stephen Gutekanst
e95481db21 gpu: add ProgrammableStageDescriptor slice helper
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2022-08-16 18:57:05 -07:00
Stephen Gutekanst
3ee9f2c18c gpu: add RenderPassDescriptor.init slice helper
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2022-08-16 18:53:41 -07:00
Stephen Gutekanst
6c9c4c71bb gpu: add ComputePassDescriptor.init slice helper
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2022-08-16 18:51:59 -07:00
Stephen Gutekanst
4dae765252 gpu: add Texture.Descriptor.init slice helper
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2022-08-16 18:50:35 -07:00
Stephen Gutekanst
05cb8b90c9 gpu: add RenderBundleEncoder.Descriptor.init slice helper
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2022-08-16 18:44:50 -07:00
Stephen Gutekanst
c82f640296 gpu: add QuerySet.Descriptor.init slice helper
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2022-08-16 17:56:47 -07:00
Stephen Gutekanst
aaa194c5eb gpu: add PipelineLayout.Descriptor.init slice helper
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2022-08-16 17:37:49 -07:00
Stephen Gutekanst
03a9cbab9a gpu: add Device.Descriptor.init slice helper
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2022-08-16 17:35:18 -07:00
Stephen Gutekanst
5e4aa7e6df gpu: add TogglesDeviceDescriptor.init slice helper
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2022-08-16 17:32:03 -07:00
Stephen Gutekanst
cb80cfc3c2 gpu: add InstanceDescriptor slice helper
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2022-08-16 17:21:19 -07:00
Stephen Gutekanst
c3bb1683a6 gpu: add BindGroup.Descriptor slice helper
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2022-08-16 17:16:52 -07:00
Stephen Gutekanst
67d07b0c55 gpu: add BindGroupLayout.Descriptor slice helper
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2022-08-16 17:12:19 -07:00
Stephen Gutekanst
68d5f6fcb1 {mach,gpu}: add autorelease pool
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2022-08-16 17:05:15 -07:00
Stephen Gutekanst
f366244a9a gpu: add TODOs for slice helper candidates
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2022-08-16 10:46:49 -07:00
Stephen Gutekanst
e13b3078a5 freetype: improve compatibility with -fno-stage1
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2022-08-15 21:43:28 -07:00
Stephen Gutekanst
fcbd12e36c ecs: improve compatibility with -fno-stage1
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2022-08-15 21:33:37 -07:00
Stephen Gutekanst
d3f0d9938e sysaudio: improve compatibility with -fno-stage1
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2022-08-15 21:33:21 -07:00
Michal Ziulek
4c805035ac
glfw: simplify build script, remove redundant allocs, improve -fno-stage1 support 2022-08-15 17:12:53 -07:00
Cai Bingjun
3d912b8df4 README: change the size of gif 2022-08-12 22:19:18 -07:00
Stephen Gutekanst
4b23c3be62 sysaudio: fix requestDevice from descriptor
Fixes hexops/mach#438

Was caused by an inverted `strcmp`: 0cdeb770ac

Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2022-08-12 15:46:36 -07:00
Release automation
ca86c4de92 gpu-dawn: update to latest binary release 2022-08-12 22:36:00 +00:00
Stephen Gutekanst
78675470ae {mach,gpu}: rename GPU_BACKEND -> MACH_GPU_BACKEND
Per https://github.com/hexops/mach/issues/376#issuecomment-1170374460

Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2022-08-12 14:54:09 -07:00
Stephen Gutekanst
7dd1818e70 all: update to Zig 0.10.0-dev.3551+92568a009
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2022-08-12 14:45:21 -07:00
Stephen Gutekanst
27df1e7ca8 gpu: workaround stage2 usingnamespace bug
See ziglang/zig#12429

Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2022-08-12 10:48:18 -07:00
Ali Chraghi
9a79da0f69 mach: use optional specifier 2022-08-12 10:39:49 -07:00
Stephen Gutekanst
f299d87aa2 {examples,shaderexp}: update to new mach/gpu API
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2022-08-12 00:43:43 -07:00
Stephen Gutekanst
852d232335 mach: update callback context ordering
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2022-08-12 00:43:43 -07:00
Stephen Gutekanst
58600faa0d gpu: make ctx parameters in callbacks always first
This matches the order of context parameters always being first in the Zig stdlib
with e.g. sorting and similar places where a context parameter exists.

Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2022-08-12 00:43:43 -07:00
Stephen Gutekanst
7f8c279cbc gamemode: zig fmt
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2022-08-12 00:43:43 -07:00
Stephen Gutekanst
fa1ddc4f0d mach: correctly fire resize event on startup once again
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2022-08-12 00:43:43 -07:00
Stephen Gutekanst
4429be4f5f gpu: correct alignment casts of callback helpers
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2022-08-12 00:43:43 -07:00
Stephen Gutekanst
6357f3a767 gpu: update example shader @stage(vertex) -> @vertex
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2022-08-12 00:43:43 -07:00
Stephen Gutekanst
c5b565d0ce gpu: correct Buffer.mapped_at_creation default
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2022-08-12 00:43:43 -07:00
Stephen Gutekanst
5bd33af68f mach: update libmach to use new mach/gpu API
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2022-08-12 00:43:43 -07:00
Stephen Gutekanst
70f9e9eae6 gpu: correct DepthStencilState defaults
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2022-08-12 00:43:43 -07:00
Stephen Gutekanst
e26ec2a685 gpu: correct RenderPassDescriptor.depth_stencil_attachment pointer type
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2022-08-12 00:43:43 -07:00