From e7041f785acccf31c9b7af38051a10f748c06495 Mon Sep 17 00:00:00 2001 From: daniel-andersen Date: Fri, 2 Aug 2024 11:04:10 +0200 Subject: [PATCH 1/2] Quality of life changes to wgpu/wasm stuff --- vendor/wasm/js/events.odin | 2 ++ vendor/wgpu/wgpu.odin | 7 +------ 2 files changed, 3 insertions(+), 6 deletions(-) diff --git a/vendor/wasm/js/events.odin b/vendor/wasm/js/events.odin index 2d3f01ceb49..4e786e2bed1 100644 --- a/vendor/wasm/js/events.odin +++ b/vendor/wasm/js/events.odin @@ -33,6 +33,7 @@ Event_Kind :: enum u32 { Submit, Blur, Change, + HashChange, Select, Animation_Start, @@ -112,6 +113,7 @@ event_kind_string := [Event_Kind]string{ .Submit = "submit", .Blur = "blur", .Change = "change", + .HashChange = "hashchange", .Select = "select", .Animation_Start = "animationstart", diff --git a/vendor/wgpu/wgpu.odin b/vendor/wgpu/wgpu.odin index 4efe572cf9f..b486faf3aae 100644 --- a/vendor/wgpu/wgpu.odin +++ b/vendor/wgpu/wgpu.odin @@ -716,12 +716,7 @@ BufferDescriptor :: struct { mappedAtCreation: b32, } -Color :: struct { - r: f64, - g: f64, - b: f64, - a: f64, -} +Color :: [4]f32 CommandBufferDescriptor :: struct { nextInChain: ^ChainedStruct, From 723e6d19be3eaf710c93a32dd84abcae441536bf Mon Sep 17 00:00:00 2001 From: daniel-andersen Date: Fri, 2 Aug 2024 13:38:36 +0200 Subject: [PATCH 2/2] right number whoops! --- vendor/wgpu/wgpu.odin | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vendor/wgpu/wgpu.odin b/vendor/wgpu/wgpu.odin index b486faf3aae..af81dde5641 100644 --- a/vendor/wgpu/wgpu.odin +++ b/vendor/wgpu/wgpu.odin @@ -716,7 +716,7 @@ BufferDescriptor :: struct { mappedAtCreation: b32, } -Color :: [4]f32 +Color :: [4]f64 CommandBufferDescriptor :: struct { nextInChain: ^ChainedStruct,