GPU: Implement basic rectangle rendering
This commit is contained in:
parent
f47d44c151
commit
46870c6a7a
4 changed files with 65 additions and 5 deletions
|
|
@ -322,7 +322,7 @@ bool GPU::HandleRenderCommand()
|
|||
case Primitive::Rectangle:
|
||||
{
|
||||
words_per_vertex =
|
||||
1 + BoolToUInt8(rc.texture_enable) + BoolToUInt8(rc.rectangle_size == DrawRectangleSize::Variable);
|
||||
2 + BoolToUInt8(rc.texture_enable) + BoolToUInt8(rc.rectangle_size == DrawRectangleSize::Variable);
|
||||
num_vertices = 1;
|
||||
total_words = words_per_vertex;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue