Closed hanyangl5 closed 2 years ago
To support multiple graphics api, DirectX/OpenGL/Vulkan, we can have a wrapper of api instructions and don't expose them to user. ex: use a function draw() to wrap glDrawArrays, DrawInstanced and vkCmdDrawIndexed.
draw()
glDrawArrays
DrawInstanced
vkCmdDrawIndexed
To support multiple graphics api, DirectX/OpenGL/Vulkan, we can have a wrapper of api instructions and don't expose them to user. ex: use a function
draw()
to wrapglDrawArrays
,DrawInstanced
andvkCmdDrawIndexed
.