wined3d: Add D3DSTREAMSOURCE codes to the WINED3D namespace.
This commit is contained in:
parent
f71edf223f
commit
4c723a7662
|
@ -2368,17 +2368,17 @@ static HRESULT WINAPI IWineD3DDeviceImpl_SetStreamSource(IWineD3DDevice *iface,
|
|||
/* D3d9 only, but shouldn't hurt d3d8 */
|
||||
UINT streamFlags;
|
||||
|
||||
streamFlags = StreamNumber &(D3DSTREAMSOURCE_INDEXEDDATA | D3DSTREAMSOURCE_INSTANCEDATA);
|
||||
streamFlags = StreamNumber &(WINED3DSTREAMSOURCE_INDEXEDDATA | WINED3DSTREAMSOURCE_INSTANCEDATA);
|
||||
if (streamFlags) {
|
||||
if (streamFlags & D3DSTREAMSOURCE_INDEXEDDATA) {
|
||||
if (streamFlags & WINED3DSTREAMSOURCE_INDEXEDDATA) {
|
||||
FIXME("stream index data not supported\n");
|
||||
}
|
||||
if (streamFlags & D3DSTREAMSOURCE_INDEXEDDATA) {
|
||||
if (streamFlags & WINED3DSTREAMSOURCE_INDEXEDDATA) {
|
||||
FIXME("stream instance data not supported\n");
|
||||
}
|
||||
}
|
||||
|
||||
StreamNumber&= ~(D3DSTREAMSOURCE_INDEXEDDATA | D3DSTREAMSOURCE_INSTANCEDATA);
|
||||
StreamNumber&= ~(WINED3DSTREAMSOURCE_INDEXEDDATA | WINED3DSTREAMSOURCE_INSTANCEDATA);
|
||||
|
||||
if (StreamNumber >= MAX_STREAMS) {
|
||||
WARN("Stream out of range %d\n", StreamNumber);
|
||||
|
@ -2434,17 +2434,17 @@ static HRESULT WINAPI IWineD3DDeviceImpl_GetStreamSource(IWineD3DDevice *iface,
|
|||
This->stateBlock->streamSource[StreamNumber], This->stateBlock->streamStride[StreamNumber]);
|
||||
|
||||
|
||||
streamFlags = StreamNumber &(D3DSTREAMSOURCE_INDEXEDDATA | D3DSTREAMSOURCE_INSTANCEDATA);
|
||||
streamFlags = StreamNumber &(WINED3DSTREAMSOURCE_INDEXEDDATA | WINED3DSTREAMSOURCE_INSTANCEDATA);
|
||||
if (streamFlags) {
|
||||
if (streamFlags & D3DSTREAMSOURCE_INDEXEDDATA) {
|
||||
if (streamFlags & WINED3DSTREAMSOURCE_INDEXEDDATA) {
|
||||
FIXME("stream index data not supported\n");
|
||||
}
|
||||
if (streamFlags & D3DSTREAMSOURCE_INDEXEDDATA) {
|
||||
if (streamFlags & WINED3DSTREAMSOURCE_INDEXEDDATA) {
|
||||
FIXME("stream instance data not supported\n");
|
||||
}
|
||||
}
|
||||
|
||||
StreamNumber&= ~(D3DSTREAMSOURCE_INDEXEDDATA | D3DSTREAMSOURCE_INSTANCEDATA);
|
||||
StreamNumber&= ~(WINED3DSTREAMSOURCE_INDEXEDDATA | WINED3DSTREAMSOURCE_INSTANCEDATA);
|
||||
|
||||
if (StreamNumber >= MAX_STREAMS) {
|
||||
WARN("Stream out of range %d\n", StreamNumber);
|
||||
|
@ -2479,7 +2479,7 @@ static HRESULT WINAPI IWineD3DDeviceImpl_SetStreamSourceFreq(IWineD3DDevice *ifa
|
|||
IWineD3DDeviceImpl *This = (IWineD3DDeviceImpl *)iface;
|
||||
|
||||
TRACE("(%p) StreamNumber(%d), Divider(%d)\n", This, StreamNumber, Divider);
|
||||
This->updateStateBlock->streamFlags[StreamNumber] = Divider & (D3DSTREAMSOURCE_INSTANCEDATA | D3DSTREAMSOURCE_INDEXEDDATA );
|
||||
This->updateStateBlock->streamFlags[StreamNumber] = Divider & (WINED3DSTREAMSOURCE_INSTANCEDATA | WINED3DSTREAMSOURCE_INDEXEDDATA );
|
||||
|
||||
This->updateStateBlock->changed.streamFreq[StreamNumber] = TRUE;
|
||||
This->updateStateBlock->set.streamFreq[StreamNumber] = TRUE;
|
||||
|
|
|
@ -1102,7 +1102,7 @@ struct IWineD3DStateBlockImpl
|
|||
UINT streamOffset[MAX_STREAMS];
|
||||
IWineD3DVertexBuffer *streamSource[MAX_STREAMS];
|
||||
UINT streamFreq[MAX_STREAMS];
|
||||
UINT streamFlags[MAX_STREAMS]; /*0 | D3DSTREAMSOURCE_INSTANCEDATA | D3DSTREAMSOURCE_INDEXEDDATA */
|
||||
UINT streamFlags[MAX_STREAMS]; /*0 | WINED3DSTREAMSOURCE_INSTANCEDATA | WINED3DSTREAMSOURCE_INDEXEDDATA */
|
||||
|
||||
/* Indices */
|
||||
IWineD3DIndexBuffer* pIndexData;
|
||||
|
|
|
@ -1533,4 +1533,8 @@ typedef enum _WINED3DSURFTYPE {
|
|||
#define WINED3DCLEAR_ZBUFFER 0x00000002
|
||||
#define WINED3DCLEAR_STENCIL 0x00000004
|
||||
|
||||
/* Stream source flags */
|
||||
#define WINED3DSTREAMSOURCE_INDEXEDDATA (1 << 30)
|
||||
#define WINED3DSTREAMSOURCE_INSTANCEDATA (2 << 30)
|
||||
|
||||
#endif
|
||||
|
|
Loading…
Reference in New Issue