* The driver will certainly subclass this to include actual memory
* management information.
*/
-struct pipe_buffer {
+struct pipe_buffer
+{
unsigned alignment;
unsigned usage;
unsigned size;
};
-
-
/**
* Primitive (point/line/tri) rasterization info
*/
};
-struct pipe_poly_stipple {
+struct pipe_poly_stipple
+{
unsigned stipple[32];
};
-struct pipe_viewport_state {
+struct pipe_viewport_state
+{
float scale[4];
float translate[4];
};
-struct pipe_scissor_state {
+struct pipe_scissor_state
+{
unsigned minx:16;
unsigned miny:16;
unsigned maxx:16;
};
-struct pipe_clip_state {
+struct pipe_clip_state
+{
float ucp[PIPE_MAX_CLIP_PLANES][4];
unsigned nr;
};
/**
* Constants for vertex/fragment shaders
*/
-struct pipe_constant_buffer {
+struct pipe_constant_buffer
+{
struct pipe_buffer *buffer;
unsigned size; /** in bytes */
};
-struct pipe_shader_state {
+struct pipe_shader_state
+{
const struct tgsi_token *tokens;
ubyte num_inputs;
ubyte num_outputs;
};
-struct pipe_blend_state {
+struct pipe_blend_state
+{
unsigned blend_enable:1;
unsigned rgb_func:3; /**< PIPE_BLEND_x */
};
-struct pipe_blend_color {
+struct pipe_blend_color
+{
float color[4];
};
*/
struct pipe_sampler_state
{
- unsigned wrap_s:3; /**< PIPE_TEX_WRAP_x */
- unsigned wrap_t:3; /**< PIPE_TEX_WRAP_x */
- unsigned wrap_r:3; /**< PIPE_TEX_WRAP_x */
+ unsigned wrap_s:3; /**< PIPE_TEX_WRAP_x */
+ unsigned wrap_t:3; /**< PIPE_TEX_WRAP_x */
+ unsigned wrap_r:3; /**< PIPE_TEX_WRAP_x */
unsigned min_img_filter:2; /**< PIPE_TEX_FILTER_x */
unsigned min_mip_filter:2; /**< PIPE_TEX_MIPFILTER_x */
unsigned mag_img_filter:2; /**< PIPE_TEX_FILTER_x */
- unsigned compare:1; /**< shadow/depth compare enabled? */
- unsigned compare_mode:1; /**< PIPE_TEX_COMPARE_x */
- unsigned compare_func:3; /**< PIPE_FUNC_x */
- unsigned normalized_coords:1; /**< Are coords normalized to [0,1]? */
- float shadow_ambient; /**< shadow test fail color/intensity */
- float lod_bias; /**< LOD/lambda bias */
- float min_lod, max_lod; /**< LOD clamp range, after bias */
+ unsigned compare:1; /**< shadow/depth compare enabled? */
+ unsigned compare_mode:1; /**< PIPE_TEX_COMPARE_x */
+ unsigned compare_func:3; /**< PIPE_FUNC_x */
+ unsigned normalized_coords:1; /**< Are coords normalized to [0,1]? */
+ float shadow_ambient; /**< shadow test fail color/intensity */
+ float lod_bias; /**< LOD/lambda bias */
+ float min_lod, max_lod; /**< LOD clamp range, after bias */
float border_color[4];
float max_anisotropy;
};
*/
struct pipe_surface
{
- struct pipe_buffer *buffer; /**< driver private buffer handle */
+ struct pipe_buffer *buffer; /**< surface's buffer/memory */
enum pipe_format format; /**< PIPE_FORMAT_x */
unsigned status; /**< PIPE_SURFACE_STATUS_x */
- unsigned clear_value; /**< may be temporary */
+ unsigned clear_value; /**< XXX may be temporary */
unsigned cpp; /**< bytes per pixel */
unsigned width;
unsigned height;