- const Program *shprog;
- const VertexSetup *vertex_setup;
- FaceWinding front_face;
- CullMode face_cull;
- unsigned enabled_clip_planes;
- std::vector<BoundTexture> textures;
- std::vector<BoundUniformBlock> uniform_blocks;
- const DepthTest *depth_test;
- const StencilTest *stencil_test;
- const Blend *blend;
- mutable unsigned changes;
-
- static const PipelineState *last_applied;
- static std::vector<int> bound_tex_targets;
+ const Framebuffer *framebuffer = 0;
+ Rect viewport = Rect::max();
+ Rect scissor = Rect::max();
+ const Program *shprog = 0;
+ 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;
+ StencilTest stencil_test;
+ Blend blend;