mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 03:08:05 +02:00
gallium: Add tgsi_declaration_dimension token.
This will allow us to declare two-dimensional constant buffers.
This commit is contained in:
parent
241a0b8cf3
commit
0adfdaeaa1
1 changed files with 8 additions and 1 deletions
|
|
@ -109,10 +109,11 @@ struct tgsi_declaration
|
|||
unsigned File : 4; /**< one of TGSI_FILE_x */
|
||||
unsigned UsageMask : 4; /**< bitmask of TGSI_WRITEMASK_x flags */
|
||||
unsigned Interpolate : 4; /**< one of TGSI_INTERPOLATE_x */
|
||||
unsigned Dimension : 1; /**< any extra dimension info? */
|
||||
unsigned Semantic : 1; /**< BOOL, any semantic info? */
|
||||
unsigned Centroid : 1; /**< centroid sampling? */
|
||||
unsigned Invariant : 1; /**< invariant optimization? */
|
||||
unsigned Padding : 5;
|
||||
unsigned Padding : 4;
|
||||
};
|
||||
|
||||
struct tgsi_declaration_range
|
||||
|
|
@ -121,6 +122,12 @@ struct tgsi_declaration_range
|
|||
unsigned Last : 16; /**< UINT */
|
||||
};
|
||||
|
||||
struct tgsi_declaration_dimension
|
||||
{
|
||||
unsigned Index2D:16; /**< UINT */
|
||||
unsigned Padding:16;
|
||||
};
|
||||
|
||||
#define TGSI_SEMANTIC_POSITION 0
|
||||
#define TGSI_SEMANTIC_COLOR 1
|
||||
#define TGSI_SEMANTIC_BCOLOR 2 /**< back-face color */
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue