X-Git-Url: http://git.tdb.fi/?p=libs%2Fgl.git;a=blobdiff_plain;f=source%2Fcore%2Fpipelinestate.h;h=5156e0b5e94119826fb1e6cab79fe6b26c9a5b1e;hp=965bc15f16f11e5dbcfef30068dad621cee0a3a3;hb=9eb9f592d37e9a1e05c2ff70887a1c5f26b98864;hpb=29fe33d3dde1df0e11c741b0c02af2f33b685571 diff --git a/source/core/pipelinestate.h b/source/core/pipelinestate.h index 965bc15f..5156e0b5 100644 --- a/source/core/pipelinestate.h +++ b/source/core/pipelinestate.h @@ -73,7 +73,8 @@ private: DEPTH_TEST = 256, STENCIL_TEST = 512, BLEND = 1024, - PRIMITIVE_TYPE = 2048 + PRIMITIVE_TYPE = 2048, + PATCH_SIZE = 4096 }; const Framebuffer *framebuffer = 0; @@ -83,6 +84,7 @@ private: std::vector resources; const VertexSetup *vertex_setup = 0; PrimitiveType primitive_type = TRIANGLES; + unsigned patch_size = 0; FaceWinding front_face = COUNTERCLOCKWISE; CullMode face_cull = NO_CULL; DepthTest depth_test; @@ -105,6 +107,7 @@ private: public: void set_vertex_setup(const VertexSetup *); void set_primitive_type(PrimitiveType); + void set_patch_size(unsigned); void set_front_face(FaceWinding); void set_face_cull(CullMode); void set_depth_test(const DepthTest &);