]> git.tdb.fi Git - libs/gl.git/blobdiff - source/core/pipelinestate.h
Check the flat qualifier from the correct member
[libs/gl.git] / source / core / pipelinestate.h
index 965bc15f16f11e5dbcfef30068dad621cee0a3a3..a836c4070b368e4103b80c5ed656cf790d2f15ba 100644 (file)
@@ -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<BoundResource> 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