mirror of
https://git.suyu.dev/suyu/suyu.git
synced 2024-11-26 21:36:27 -05:00
gl_rasterizer: Add some commentaries
This commit is contained in:
parent
2b9d4088ec
commit
a6d2f52fc3
1 changed files with 5 additions and 0 deletions
|
@ -650,12 +650,17 @@ void RasterizerOpenGL::DrawArrays() {
|
|||
gpu.dirty_flags.vertex_array.set();
|
||||
}
|
||||
|
||||
// Prepare vertex array format.
|
||||
const GLuint vertex_array = SetupVertexFormat();
|
||||
|
||||
// Upload vertex and index data.
|
||||
SetupVertexBuffer(vertex_array);
|
||||
const GLintptr index_buffer_offset = SetupIndexBuffer();
|
||||
|
||||
// Setup draw parameters. It will automatically choose what glDraw* method to use.
|
||||
const DrawParameters params = SetupDraw(index_buffer_offset);
|
||||
|
||||
// Setup shaders and their used resources.
|
||||
texture_cache.GuardSamplers(true);
|
||||
SetupShaders(params.primitive_mode);
|
||||
texture_cache.GuardSamplers(false);
|
||||
|
|
Loading…
Reference in a new issue