add SupportsThreadedRendering flag (not in OGL yet)
This commit is contained in:
@@ -141,6 +141,7 @@ public:
|
|||||||
virtual void SetBlendMode( BlendMode mode ) = 0;
|
virtual void SetBlendMode( BlendMode mode ) = 0;
|
||||||
|
|
||||||
virtual bool SupportsTextureFormat( PixelFormat pixfmt, bool realtime=false ) = 0;
|
virtual bool SupportsTextureFormat( PixelFormat pixfmt, bool realtime=false ) = 0;
|
||||||
|
virtual bool SupportsThreadedRendering() { return false; }
|
||||||
|
|
||||||
/* return 0 if failed or internal texture resource handle
|
/* return 0 if failed or internal texture resource handle
|
||||||
* (unsigned in OpenGL, texture pointer in D3D) */
|
* (unsigned in OpenGL, texture pointer in D3D) */
|
||||||
|
|||||||
@@ -682,6 +682,11 @@ bool RageDisplay_D3D::SupportsTextureFormat( PixelFormat pixfmt, bool realtime )
|
|||||||
return SUCCEEDED( hr );
|
return SUCCEEDED( hr );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
bool RageDisplay_D3D::SupportsThreadedRendering()
|
||||||
|
{
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
RageSurface* RageDisplay_D3D::CreateScreenshot()
|
RageSurface* RageDisplay_D3D::CreateScreenshot()
|
||||||
{
|
{
|
||||||
#if defined(XBOX)
|
#if defined(XBOX)
|
||||||
|
|||||||
@@ -18,6 +18,7 @@ public:
|
|||||||
VideoModeParams GetVideoModeParams() const;
|
VideoModeParams GetVideoModeParams() const;
|
||||||
void SetBlendMode( BlendMode mode );
|
void SetBlendMode( BlendMode mode );
|
||||||
bool SupportsTextureFormat( PixelFormat pixfmt, bool realtime=false );
|
bool SupportsTextureFormat( PixelFormat pixfmt, bool realtime=false );
|
||||||
|
bool SupportsThreadedRendering();
|
||||||
unsigned CreateTexture(
|
unsigned CreateTexture(
|
||||||
PixelFormat pixfmt,
|
PixelFormat pixfmt,
|
||||||
RageSurface* img,
|
RageSurface* img,
|
||||||
|
|||||||
Reference in New Issue
Block a user