Repository navigation
canvas: pictures of the program's, draws laid over by alpha, gpu.set_vec4 - #1105
Merged
Merged
Conversation
…vec4 - engine_texture_new / engine_texture_free: an RGBA picture the program has, its bytes as they are, nearest and repeating, no mips (vktexture.texture_create_picture; an RGBA8 texture on OpenGL). - canvas_draw takes `over`: a draw blended by its pixel shader's alpha, queued after the opaque ones, furthest first. - gpu.set_vec4, as set_vec3. - platform.window_set_size, window_x, window_y. - ae3d.batch passes over=false. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Follows the program canvas (#1096) with what a larger canvas program needed.
engine_texture_new(e, w, h, rgba)/engine_texture_free: a picture the program has, its RGBA bytes as they are (no colour curve), each sample the one texel it falls in, repeating, no mips, so a map the program's own code samples is sampled the same on the GPU. Vulkan:vktexture.texture_create_picture; OpenGL: an RGBA8 texture, nearest and repeating.canvas_drawtakesover: bool: a draw laid over what is there by its pixel shader's alpha, queued after the opaque draws, furthest first, depth written. Through engine, gl, vulkan, vkframe and vkquote (program_pipeline(p, over, culled)).gpu.set_vec4, asset_vec3.platform.window_set_size,window_x,window_y.ae3d.batch(ae3d.batch: a frame in one buffer from a host (three.js on sae), MeshNormalMaterial as a quoted pair #1102) passesover = false;examples/canvas.aeupdated for the new argument;docs/canvas.mdand the change fragment.API change:
engine_canvas_draw/renderer_canvas_drawgainoverbeforetextures. Every caller in the tree is updated.Checked on the x86_64 Linux lane (ae 0.946.0, llvmpipe): every build warning-free;
test_batch,test_backend_parity,test_batchingall checks passed;examples/canvasran 60 frames on OpenGL and on Vulkan.Not yet here: a suite of its own for the picture texture's sampling and for
over's blending and ordering: the canvas example exercises them but asserts nothing about them. Happy to add one if you want it before merge.🤖 Generated with Claude Code