We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Currently APIs are individual call
Maybe we can also provide structs to reduce func calls
for instance
GPUSetFrontFace(rce, GPUWindingCounterClockwise); GPUSetCullMode(rce, GPUCullModeBack); GPUSetRenderState(rce, renderState); GPUSetDepthStencil(rce, depthStencilState); GPUSetVertexBuffer(rce, dynamicUniformBuffer, uniformBufferOffset, BufferIndexUniforms); GPUSetFragmentBuffer(rce, dynamicUniformBuffer, uniformBufferOffset, BufferIndexUniforms); GPUSetFragmentTexture(rce, _colorMap, TextureIndexColor);
like
GPUNewRenderCommandEncoder(cmdb, pass, (Type){ .frontFace = GPUWindingCounterClockwise, .cullMode = GPUCullModeBack, .renderState = renderState, .depthStencil = depthStencilState, .vertexBuffer = { .buf = dynamicUniformBuffer, .off = uniformBufferOffset, .idx = BufferIndexUniforms, }, .fragmentBuffer = { .buf = dynamicUniformBuffer, .off = uniformBufferOffset, .idx = BufferIndexUniforms, } });
or with small structs...
GPUNewRenderCommandEncoder(cmdb, pass, (Type){ .frontFace = GPUWindingCounterClockwise, .cullMode = GPUCullModeBack, .renderState = renderState, .depthStencil = depthStencilState, });
both can co-exist, this is just an example
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Currently APIs are individual call
Maybe we can also provide structs to reduce func calls
for instance
like
or with small structs...
both can co-exist, this is just an example
The text was updated successfully, but these errors were encountered: