X-Git-Url: http://git.tdb.fi/?p=libs%2Fgl.git;a=blobdiff_plain;f=source%2Fcore%2Fpipelinestate.h;h=28624ed7ca64a5a0e5bba111cf45b27477bb11e5;hp=965bc15f16f11e5dbcfef30068dad621cee0a3a3;hb=HEAD;hpb=2a70fecfbbe8708be2bdaa75d222dd5a889a8ed3 diff --git a/source/core/pipelinestate.h b/source/core/pipelinestate.h index 965bc15f..a836c407 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 &); @@ -117,6 +120,9 @@ public: const VertexSetup *get_vertex_setup() const { return vertex_setup; } FaceWinding get_front_face() const { return front_face; } CullMode get_face_cull() const { return face_cull; } + +private: + void check_bound_resources() const; }; } // namespace GL