From e2b09f856c90befe6bb0881e8b1ca1a497a6769c Mon Sep 17 00:00:00 2001 From: arhik Date: Mon, 13 Nov 2023 23:02:13 +0530 Subject: [PATCH] updating examples --- examples/saveTriangle.jl | 2 +- examples/triangle.jl | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/examples/saveTriangle.jl b/examples/saveTriangle.jl index ce739c2..c92bdfa 100644 --- a/examples/saveTriangle.jl +++ b/examples/saveTriangle.jl @@ -37,7 +37,7 @@ shaderSource = Vector{UInt8}( """, ); -canvas = WGPUCore.defaultCanvas(WGPUCore.WGPUCanvas); +canvas = WGPUCore.getCanvas(:GLFW); gpuDevice = WGPUCore.getDefaultDevice(); shadercode = WGPUCore.loadWGSL(shaderSource); cshader = diff --git a/examples/triangle.jl b/examples/triangle.jl index 2783dc8..3e3470d 100644 --- a/examples/triangle.jl +++ b/examples/triangle.jl @@ -50,7 +50,7 @@ swapChainFormat = WGPUCore.getPreferredFormat(canvas) presentContext = WGPUCore.getContext(canvas) ctxtSize = WGPUCore.determineSize(presentContext) .|> Int -WGPUCore.config(presentContext, device = gpuDevice, format = swapChainFormat) +WGPUCore.config(presentContext; device = gpuDevice, format = swapChainFormat) renderpipelineOptions = [ WGPUCore.GPUVertexState =>