Skip to content

Commit

Permalink
updating examples
Browse files Browse the repository at this point in the history
  • Loading branch information
arhik committed Nov 13, 2023
1 parent 61ca99c commit e2b09f8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion examples/saveTriangle.jl
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ shaderSource = Vector{UInt8}(
""",
);

canvas = WGPUCore.defaultCanvas(WGPUCore.WGPUCanvas);
canvas = WGPUCore.getCanvas(:GLFW);
gpuDevice = WGPUCore.getDefaultDevice();
shadercode = WGPUCore.loadWGSL(shaderSource);
cshader =
Expand Down
2 changes: 1 addition & 1 deletion examples/triangle.jl
Original file line number Diff line number Diff line change
Expand Up @@ -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 =>
Expand Down

0 comments on commit e2b09f8

Please sign in to comment.