ngfx::D3DGraphicsContext
Inherits from ngfx::GraphicsContext
Public Classes
Name | |
---|---|
struct | D3DRenderPassData |
Public Functions
Name | |
---|---|
void | create(const char * appName, bool enableDepthStencil, bool debug) |
virtual | ~D3DGraphicsContext() |
virtual void | setSurface(Surface * surface) override |
virtual CommandBuffer * | drawCommandBuffer(int32_t index =-1) override |
virtual CommandBuffer * | copyCommandBuffer() override |
virtual CommandBuffer * | computeCommandBuffer() override |
virtual RenderPass * | getRenderPass(RenderPassConfig config) override |
Public Attributes
Name | |
---|---|
std::vector< std::unique_ptr< D3DRenderPassData > > | d3dRenderPassCache |
ComPtr< IDXGIFactory4 > | d3dFactory |
D3DDevice | d3dDevice |
D3DCommandQueue | d3dCommandQueue |
D3DDescriptorHeap | d3dRtvDescriptorHeap |
D3DDescriptorHeap | d3dCbvSrvUavDescriptorHeap |
D3DDescriptorHeap | d3dSamplerDescriptorHeap |
D3DDescriptorHeap | d3dDsvDescriptorHeap |
D3DPipelineCache | d3dPipelineCache |
D3DSwapchain | d3dSwapchain |
std::vector< D3DCommandList > | d3dDrawCommandLists |
D3DCommandList | d3dCopyCommandList |
D3DCommandList | d3dComputeCommandList |
D3DRenderPass * | d3dDefaultRenderPass |
D3DRenderPass * | d3dDefaultOffscreenRenderPass |
std::vector< D3DFramebuffer > | d3dSwapchainFramebuffers |
std::vector< D3DFence > | d3dWaitFences |
D3DFence | d3dComputeFence |
D3DComputePass | d3dComputePass |
std::unique_ptr< D3DTexture > | d3dDepthStencilView |
bool | offscreen |
uint32_t | numSamples |
Additional inherited members
Public Classes inherited from ngfx::GraphicsContext
Name | |
---|---|
struct | AttachmentDescription |
struct | RenderPassConfig |
Public Functions inherited from ngfx::GraphicsContext
Name | |
---|---|
virtual | ~GraphicsContext() |
virtual void | beginRenderPass(CommandBuffer * commandBuffer, Graphics * graphics) |
virtual void | beginOffscreenRenderPass(CommandBuffer * commandBuffer, Graphics * graphics, Framebuffer * outputFramebuffer) |
virtual void | endRenderPass(CommandBuffer * commandBuffer, Graphics * graphics) |
virtual void | endOffscreenRenderPass(CommandBuffer * commandBuffer, Graphics * graphics) |
virtual void | submit(CommandBuffer * commandBuffer) |
Public Attributes inherited from ngfx::GraphicsContext
Name | |
---|---|
Device * | device |
uint32_t | numDrawCommandBuffers |
std::vector< Framebuffer * > | swapchainFramebuffers |
Queue * | queue |
RenderPass * | defaultRenderPass |
RenderPass * | defaultOffscreenRenderPass |
Swapchain * | swapchain |
Surface * | surface |
uint32_t | currentImageIndex |
std::vector< Fence * > | frameFences |
Fence * | computeFence |
Semaphore * | presentCompleteSemaphore |
Semaphore * | renderCompleteSemaphore |
PipelineCache * | pipelineCache |
PixelFormat | surfaceFormat |
PixelFormat | defaultOffscreenSurfaceFormat |
PixelFormat | depthFormat |
glm::vec4 | clearColor |
Protected Attributes inherited from ngfx::GraphicsContext
Name | |
---|---|
bool | debug |
bool | enableDepthStencil |
Public Functions Documentation
function create
void create(
const char * appName,
bool enableDepthStencil,
bool debug
)
function ~D3DGraphicsContext
inline virtual ~D3DGraphicsContext()
function setSurface
virtual void setSurface(
Surface * surface
) override
Reimplements: ngfx::GraphicsContext::setSurface
function drawCommandBuffer
virtual CommandBuffer * drawCommandBuffer(
int32_t index =-1
) override
Reimplements: ngfx::GraphicsContext::drawCommandBuffer
function copyCommandBuffer
virtual CommandBuffer * copyCommandBuffer() override
Reimplements: ngfx::GraphicsContext::copyCommandBuffer
function computeCommandBuffer
virtual CommandBuffer * computeCommandBuffer() override
Reimplements: ngfx::GraphicsContext::computeCommandBuffer
function getRenderPass
virtual RenderPass * getRenderPass(
RenderPassConfig config
) override
Reimplements: ngfx::GraphicsContext::getRenderPass
Public Attributes Documentation
variable d3dRenderPassCache
std::vector< std::unique_ptr< D3DRenderPassData > > d3dRenderPassCache;
variable d3dFactory
ComPtr< IDXGIFactory4 > d3dFactory;
variable d3dDevice
D3DDevice d3dDevice;
variable d3dCommandQueue
D3DCommandQueue d3dCommandQueue;
variable d3dRtvDescriptorHeap
D3DDescriptorHeap d3dRtvDescriptorHeap;
variable d3dCbvSrvUavDescriptorHeap
D3DDescriptorHeap d3dCbvSrvUavDescriptorHeap;
variable d3dSamplerDescriptorHeap
D3DDescriptorHeap d3dSamplerDescriptorHeap;
variable d3dDsvDescriptorHeap
D3DDescriptorHeap d3dDsvDescriptorHeap;
variable d3dPipelineCache
D3DPipelineCache d3dPipelineCache;
variable d3dSwapchain
D3DSwapchain d3dSwapchain;
variable d3dDrawCommandLists
std::vector< D3DCommandList > d3dDrawCommandLists;
variable d3dCopyCommandList
D3DCommandList d3dCopyCommandList;
variable d3dComputeCommandList
D3DCommandList d3dComputeCommandList;
variable d3dDefaultRenderPass
D3DRenderPass * d3dDefaultRenderPass = nullptr;
variable d3dDefaultOffscreenRenderPass
D3DRenderPass * d3dDefaultOffscreenRenderPass = nullptr;
variable d3dSwapchainFramebuffers
std::vector< D3DFramebuffer > d3dSwapchainFramebuffers;
variable d3dWaitFences
std::vector< D3DFence > d3dWaitFences;
variable d3dComputeFence
D3DFence d3dComputeFence;
variable d3dComputePass
D3DComputePass d3dComputePass;
variable d3dDepthStencilView
std::unique_ptr< D3DTexture > d3dDepthStencilView;
variable offscreen
bool offscreen = true;
variable numSamples
uint32_t numSamples = 1;
Updated on 3 April 2021 at 20:21:51 PDT