struct DET
{
WORD wSamState : 8;
WORD wSamStage : 7;
WORD wSamSampler : 1;
};
union ST
{
WORD wRenState;
DET det;
};
struct STATE
{
ST st;
DWORD dwValue;
};
sizeof(DET) = 2
sizeof(ST) = 2
sizeof(STATE) = 8
struct STATE
{
WORD wValue;
DWORD dwValue;
};
#pragma pack(2)
struct Struct6
{
WORD w;
DWORD dw;
};
#pragma pack()
struct Struct8
{
WORD w;
DWORD dw;
};