Skip to content

Commit 4aa2f02

Browse files
committed
2 parents c99f051 + f1c5247 commit 4aa2f02

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

.github/workflows/CI.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,8 @@ jobs:
1818
fail-fast: false
1919
matrix:
2020
version:
21-
- '1.9'
22-
- 'nightly'
21+
- '1.10'
22+
- '1.11'
2323
os:
2424
- ubuntu-latest
2525
arch:

src/WGPUCanvas.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ end
3333

3434
struct ErrorCanvas <: AbstractWGPUCanvas end
3535

36-
function WGPUCore.getCanvas(s::Symbol, size::Tuple{Int, Int} = (500,500))
36+
function WGPUCore.getCanvas(s::Symbol, size::Tuple{Int, Int} = (1080, 900))
3737
canv = if s==:OFFSCREEN
3838
OffscreenCanvas
3939
elseif s==:GLFW

src/metalglfw.jl

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -68,17 +68,17 @@ function defaultCanvas(::Type{GLFWMacCanvas}, size::Tuple{Int, Int})
6868
setMetalLayer(nswindow[], metalLayer[])
6969
metalSurfaceRef =
7070
cStruct(
71-
WGPUSurfaceDescriptorFromMetalLayer;
71+
WGPUSurfaceSourceMetalLayer;
7272
chain = cStruct(
7373
WGPUChainedStruct;
7474
next = C_NULL,
75-
sType = WGPUSType_SurfaceDescriptorFromMetalLayer,
75+
sType = WGPUSType_SurfaceSourceMetalLayer,
7676
) |> concrete,
7777
layer = metalLayer[],
7878
)
7979
surfaceDescriptorRef = cStruct(
8080
WGPUSurfaceDescriptor;
81-
label = C_NULL,
81+
label = WGPUStringView(C_NULL, 0),
8282
nextInChain = metalSurfaceRef |> ptr,
8383
)
8484
instance = WGPUCore.getWGPUInstance()

0 commit comments

Comments
 (0)