Blender V4.3
GHOST_SharedOpenGLResource Class Reference

Public Member Functions

 GHOST_SharedOpenGLResource (ID3D11Device *device, ID3D11DeviceContext *device_ctx, unsigned int width, unsigned int height, DXGI_FORMAT format, ID3D11RenderTargetView *render_target=nullptr)
 
 ~GHOST_SharedOpenGLResource ()
 
bool reregisterSharedObject (RenderTarget target)
 
GHOST_TSuccess initialize ()
 
void ensureUpdated (unsigned int width, unsigned int height)
 
GHOST_TSuccess blit (unsigned int width, unsigned int height)
 

Public Attributes

ID3D11RenderTargetView * m_render_target {nullptr}
 
ID3D11Texture2D * m_render_target_tex {nullptr}
 

Detailed Description

Definition at line 110 of file GHOST_ContextD3D.cc.

Constructor & Destructor Documentation

◆ GHOST_SharedOpenGLResource()

GHOST_SharedOpenGLResource::GHOST_SharedOpenGLResource ( ID3D11Device * device,
ID3D11DeviceContext * device_ctx,
unsigned int width,
unsigned int height,
DXGI_FORMAT format,
ID3D11RenderTargetView * render_target = nullptr )
inline

Definition at line 120 of file GHOST_ContextD3D.cc.

References m_render_target, m_render_target_tex, and tex.

◆ ~GHOST_SharedOpenGLResource()

GHOST_SharedOpenGLResource::~GHOST_SharedOpenGLResource ( )
inline

Definition at line 174 of file GHOST_ContextD3D.cc.

References m_render_target, and m_render_target_tex.

Member Function Documentation

◆ blit()

GHOST_TSuccess GHOST_SharedOpenGLResource::blit ( unsigned int width,
unsigned int height )
inline

◆ ensureUpdated()

void GHOST_SharedOpenGLResource::ensureUpdated ( unsigned int width,
unsigned int height )
inline

Definition at line 292 of file GHOST_ContextD3D.cc.

References initialize(), and reregisterSharedObject().

Referenced by blit().

◆ initialize()

GHOST_TSuccess GHOST_SharedOpenGLResource::initialize ( )
inline

Definition at line 251 of file GHOST_ContextD3D.cc.

References GHOST_kFailure, GHOST_kSuccess, and reregisterSharedObject().

Referenced by ensureUpdated().

◆ reregisterSharedObject()

bool GHOST_SharedOpenGLResource::reregisterSharedObject ( RenderTarget target)
inline

Definition at line 215 of file GHOST_ContextD3D.cc.

References m_render_target_tex.

Referenced by ensureUpdated(), and initialize().

Member Data Documentation

◆ m_render_target

ID3D11RenderTargetView* GHOST_SharedOpenGLResource::m_render_target {nullptr}

◆ m_render_target_tex

ID3D11Texture2D* GHOST_SharedOpenGLResource::m_render_target_tex {nullptr}

The documentation for this class was generated from the following file: