summaryrefslogtreecommitdiffstats
path: root/src/video_core/primitive_assembly.h
diff options
context:
space:
mode:
authorYuri Kunde Schlesner <yuriks@yuriks.net>2017-01-28 03:10:54 +0100
committerYuri Kunde Schlesner <yuriks@yuriks.net>2017-01-30 06:31:38 +0100
commit37a4ea046d80973d59ddb7735a0ffbf0bfd93ad0 (patch)
treeea34825c27519d42b6f9ec82cdccafb49815a89b /src/video_core/primitive_assembly.h
parentVideoCore: Extract swrast-specific data from OutputVertex (diff)
downloadyuzu-37a4ea046d80973d59ddb7735a0ffbf0bfd93ad0.tar
yuzu-37a4ea046d80973d59ddb7735a0ffbf0bfd93ad0.tar.gz
yuzu-37a4ea046d80973d59ddb7735a0ffbf0bfd93ad0.tar.bz2
yuzu-37a4ea046d80973d59ddb7735a0ffbf0bfd93ad0.tar.lz
yuzu-37a4ea046d80973d59ddb7735a0ffbf0bfd93ad0.tar.xz
yuzu-37a4ea046d80973d59ddb7735a0ffbf0bfd93ad0.tar.zst
yuzu-37a4ea046d80973d59ddb7735a0ffbf0bfd93ad0.zip
Diffstat (limited to 'src/video_core/primitive_assembly.h')
-rw-r--r--src/video_core/primitive_assembly.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/video_core/primitive_assembly.h b/src/video_core/primitive_assembly.h
index 0384d5984..24da47382 100644
--- a/src/video_core/primitive_assembly.h
+++ b/src/video_core/primitive_assembly.h
@@ -15,7 +15,8 @@ namespace Pica {
*/
template <typename VertexType>
struct PrimitiveAssembler {
- using TriangleHandler = std::function<void(VertexType& v0, VertexType& v1, VertexType& v2)>;
+ using TriangleHandler =
+ std::function<void(const VertexType& v0, const VertexType& v1, const VertexType& v2)>;
PrimitiveAssembler(Regs::TriangleTopology topology = Regs::TriangleTopology::List);
@@ -25,7 +26,7 @@ struct PrimitiveAssembler {
* NOTE: We could specify the triangle handler in the constructor, but this way we can
* keep event and handler code next to each other.
*/
- void SubmitVertex(VertexType& vtx, TriangleHandler triangle_handler);
+ void SubmitVertex(const VertexType& vtx, TriangleHandler triangle_handler);
/**
* Resets the internal state of the PrimitiveAssembler.