This could form a base of pex-context@2.0.0 with state and matrix stack removed (with maybe just the most recent state for temporary bindings like texture uploads or buffer updates.
var renderCmd = cmdList.createCommand({
framebuffer: fbo
})
cmdQueue.submit(renderCmd, {}, function() {
// render your scene to the FBO
cmdQueue.submit(drawCubeCmd)
})
I've started a CommandQueue class inspired by Vulkan and regl
https://github.com/pex-gl/pex-renderer/blob/master/Skybox.js#L21
This could form a base of
pex-context@2.0.0
with state and matrix stack removed (with maybe just the most recent state for temporary bindings like texture uploads or buffer updates.Open poblems
Specifying FBO attachments
https://github.com/pex-gl/pex-renderer/blob/master/local_modules/pex-render-to-cubemap/index.js
Texture content uploads (after initial creation)
createUpdateCommand
?State stack via subcommands
Inspired by regl