-
Notifications
You must be signed in to change notification settings - Fork 140
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added more *.inl files for interfaces to Backend/ folder.
- Loading branch information
1 parent
bd35335
commit 6bf69ec
Showing
61 changed files
with
646 additions
and
991 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
/* | ||
* CommandQueue.inl | ||
* | ||
* Copyright (c) 2015 Lukas Hermanns. All rights reserved. | ||
* Licensed under the terms of the BSD 3-Clause license (see LICENSE.txt). | ||
*/ | ||
|
||
/* ----- Command Buffers ----- */ | ||
|
||
virtual void Submit( | ||
LLGL::CommandBuffer& commandBuffer | ||
) override final; | ||
|
||
/* ----- Queries ----- */ | ||
|
||
virtual bool QueryResult( | ||
LLGL::QueryHeap& queryHeap, | ||
std::uint32_t firstQuery, | ||
std::uint32_t numQueries, | ||
void* data, | ||
std::size_t dataSize | ||
) override final; | ||
|
||
/* ----- Fences ----- */ | ||
|
||
virtual void Submit( | ||
LLGL::Fence& fence | ||
) override final; | ||
|
||
virtual bool WaitFence( | ||
LLGL::Fence& fence, | ||
std::uint64_t timeout | ||
) override final; | ||
|
||
virtual void WaitIdle( | ||
void | ||
) override final; | ||
|
||
|
||
|
||
// ================================================================================ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
/* | ||
* PipelineLayout.inl | ||
* | ||
* Copyright (c) 2015 Lukas Hermanns. All rights reserved. | ||
* Licensed under the terms of the BSD 3-Clause license (see LICENSE.txt). | ||
*/ | ||
|
||
virtual std::uint32_t GetNumHeapBindings( | ||
void | ||
) const override final; | ||
|
||
virtual std::uint32_t GetNumBindings( | ||
void | ||
) const override final; | ||
|
||
virtual std::uint32_t GetNumStaticSamplers( | ||
void | ||
) const override final; | ||
|
||
virtual std::uint32_t GetNumUniforms( | ||
void | ||
) const override final; | ||
|
||
|
||
|
||
// ================================================================================ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,60 @@ | ||
/* | ||
* RenderSystem.Buffer.inl | ||
* | ||
* Copyright (c) 2015 Lukas Hermanns. All rights reserved. | ||
* Licensed under the terms of the BSD 3-Clause license (see LICENSE.txt). | ||
*/ | ||
|
||
/* ----- Buffers ------ */ | ||
|
||
virtual LLGL::Buffer* CreateBuffer( | ||
const LLGL::BufferDescriptor& bufferDesc, | ||
const void* initialData = nullptr | ||
) override final; | ||
|
||
virtual LLGL::BufferArray* CreateBufferArray( | ||
std::uint32_t numBuffers, | ||
LLGL::Buffer* const * bufferArray | ||
) override final; | ||
|
||
virtual void Release( | ||
LLGL::Buffer& buffer | ||
) override final; | ||
|
||
virtual void Release( | ||
LLGL::BufferArray& bufferArray | ||
) override final; | ||
|
||
virtual void WriteBuffer( | ||
LLGL::Buffer& buffer, | ||
std::uint64_t offset, | ||
const void* data, | ||
std::uint64_t dataSize | ||
) override final; | ||
|
||
virtual void ReadBuffer( | ||
LLGL::Buffer& buffer, | ||
std::uint64_t offset, | ||
void* data, | ||
std::uint64_t dataSize | ||
) override final; | ||
|
||
virtual void* MapBuffer( | ||
LLGL::Buffer& buffer, | ||
const LLGL::CPUAccess access | ||
) override final; | ||
|
||
virtual void* MapBuffer( | ||
LLGL::Buffer& buffer, | ||
const LLGL::CPUAccess access, | ||
std::uint64_t offset, | ||
std::uint64_t length | ||
) override final; | ||
|
||
virtual void UnmapBuffer( | ||
LLGL::Buffer& buffer | ||
) override final; | ||
|
||
|
||
|
||
// ================================================================================ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
/* | ||
* RenderSystem.CommandBuffer.inl | ||
* | ||
* Copyright (c) 2015 Lukas Hermanns. All rights reserved. | ||
* Licensed under the terms of the BSD 3-Clause license (see LICENSE.txt). | ||
*/ | ||
|
||
/* ----- Command buffers ----- */ | ||
|
||
virtual LLGL::CommandBuffer* CreateCommandBuffer( | ||
const LLGL::CommandBufferDescriptor& commandBufferDesc = {} | ||
) override final; | ||
|
||
virtual void Release( | ||
LLGL::CommandBuffer& commandBuffer | ||
) override final; | ||
|
||
|
||
|
||
// ================================================================================ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
/* | ||
* RenderSystem.CommandQueue.inl | ||
* | ||
* Copyright (c) 2015 Lukas Hermanns. All rights reserved. | ||
* Licensed under the terms of the BSD 3-Clause license (see LICENSE.txt). | ||
*/ | ||
|
||
/* ----- Command queues ----- */ | ||
|
||
virtual LLGL::CommandQueue* GetCommandQueue( | ||
void | ||
) override final; | ||
|
||
|
||
|
||
// ================================================================================ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
/* | ||
* RenderSystem.Fence.inl | ||
* | ||
* Copyright (c) 2015 Lukas Hermanns. All rights reserved. | ||
* Licensed under the terms of the BSD 3-Clause license (see LICENSE.txt). | ||
*/ | ||
|
||
/* ----- Fences ----- */ | ||
|
||
virtual LLGL::Fence* CreateFence( | ||
void | ||
) override final; | ||
|
||
virtual void Release( | ||
LLGL::Fence& fence | ||
) override final; | ||
|
||
|
||
|
||
// ================================================================================ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
/* | ||
* RenderSystem.PipelineLayouts.inl | ||
* | ||
* Copyright (c) 2015 Lukas Hermanns. All rights reserved. | ||
* Licensed under the terms of the BSD 3-Clause license (see LICENSE.txt). | ||
*/ | ||
|
||
/* ----- Pipeline Layouts ----- */ | ||
|
||
virtual LLGL::PipelineLayout* CreatePipelineLayout( | ||
const LLGL::PipelineLayoutDescriptor& pipelineLayoutDesc | ||
) override final; | ||
|
||
virtual void Release( | ||
LLGL::PipelineLayout& pipelineLayout | ||
) override final; | ||
|
||
|
||
|
||
// ================================================================================ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
/* | ||
* RenderSystem.PipelineState.inl | ||
* | ||
* Copyright (c) 2015 Lukas Hermanns. All rights reserved. | ||
* Licensed under the terms of the BSD 3-Clause license (see LICENSE.txt). | ||
*/ | ||
|
||
/* ----- Pipeline States ----- */ | ||
|
||
virtual LLGL::PipelineState* CreatePipelineState( | ||
const LLGL::Blob& serializedCache | ||
) override final; | ||
|
||
virtual LLGL::PipelineState* CreatePipelineState( | ||
const LLGL::GraphicsPipelineDescriptor& pipelineStateDesc, | ||
LLGL::Blob* serializedCache = nullptr | ||
) override final; | ||
|
||
virtual LLGL::PipelineState* CreatePipelineState( | ||
const LLGL::ComputePipelineDescriptor& pipelineStateDesc, | ||
LLGL::Blob* serializedCache = nullptr | ||
) override final; | ||
|
||
virtual void Release( | ||
LLGL::PipelineState& pipelineState | ||
) override final; | ||
|
||
|
||
|
||
// ================================================================================ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
/* | ||
* RenderSystem.QueryHeap.inl | ||
* | ||
* Copyright (c) 2015 Lukas Hermanns. All rights reserved. | ||
* Licensed under the terms of the BSD 3-Clause license (see LICENSE.txt). | ||
*/ | ||
|
||
/* ----- Query heaps ----- */ | ||
|
||
virtual LLGL::QueryHeap* CreateQueryHeap( | ||
const LLGL::QueryHeapDescriptor& queryHeapDesc | ||
) override final; | ||
|
||
virtual void Release( | ||
LLGL::QueryHeap& queryHeap | ||
) override final; | ||
|
||
|
||
|
||
// ================================================================================ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
/* | ||
* RenderSystem.RenderPass.inl | ||
* | ||
* Copyright (c) 2015 Lukas Hermanns. All rights reserved. | ||
* Licensed under the terms of the BSD 3-Clause license (see LICENSE.txt). | ||
*/ | ||
|
||
/* ----- Render Passes ----- */ | ||
|
||
virtual LLGL::RenderPass* CreateRenderPass( | ||
const LLGL::RenderPassDescriptor& renderPassDesc | ||
) override final; | ||
|
||
virtual void Release( | ||
LLGL::RenderPass& renderPass | ||
) override final; | ||
|
||
|
||
|
||
// ================================================================================ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
/* | ||
* RenderSystem.RenderTarget.inl | ||
* | ||
* Copyright (c) 2015 Lukas Hermanns. All rights reserved. | ||
* Licensed under the terms of the BSD 3-Clause license (see LICENSE.txt). | ||
*/ | ||
|
||
/* ----- Render Targets ----- */ | ||
|
||
virtual LLGL::RenderTarget* CreateRenderTarget( | ||
const LLGL::RenderTargetDescriptor& renderTargetDesc | ||
) override final; | ||
|
||
virtual void Release( | ||
LLGL::RenderTarget& renderTarget | ||
) override final; | ||
|
||
|
||
|
||
// ================================================================================ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
/* | ||
* RenderSystem.ResourceHeap.inl | ||
* | ||
* Copyright (c) 2015 Lukas Hermanns. All rights reserved. | ||
* Licensed under the terms of the BSD 3-Clause license (see LICENSE.txt). | ||
*/ | ||
|
||
/* ----- Resource Heaps ----- */ | ||
|
||
virtual LLGL::ResourceHeap* CreateResourceHeap( | ||
const LLGL::ResourceHeapDescriptor& resourceHeapDesc, | ||
const LLGL::ArrayView<LLGL::ResourceViewDescriptor>& initialResourceViews = {} | ||
) override final; | ||
|
||
virtual void Release( | ||
LLGL::ResourceHeap& resourceHeap | ||
) override final; | ||
|
||
virtual std::uint32_t WriteResourceHeap( | ||
LLGL::ResourceHeap& resourceHeap, | ||
std::uint32_t firstDescriptor, | ||
const LLGL::ArrayView<LLGL::ResourceViewDescriptor>& resourceViews | ||
) override final; | ||
|
||
|
||
|
||
// ================================================================================ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
/* | ||
* RenderSystem.Sampler.inl | ||
* | ||
* Copyright (c) 2015 Lukas Hermanns. All rights reserved. | ||
* Licensed under the terms of the BSD 3-Clause license (see LICENSE.txt). | ||
*/ | ||
|
||
/* ----- Samplers ---- */ | ||
|
||
virtual LLGL::Sampler* CreateSampler( | ||
const LLGL::SamplerDescriptor& samplerDesc | ||
) override final; | ||
|
||
virtual void Release( | ||
LLGL::Sampler& sampler | ||
) override final; | ||
|
||
|
||
|
||
// ================================================================================ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
/* | ||
* RenderSystem.Shader.inl | ||
* | ||
* Copyright (c) 2015 Lukas Hermanns. All rights reserved. | ||
* Licensed under the terms of the BSD 3-Clause license (see LICENSE.txt). | ||
*/ | ||
|
||
/* ----- Shaders ----- */ | ||
|
||
virtual LLGL::Shader* CreateShader( | ||
const LLGL::ShaderDescriptor& shaderDesc | ||
) override final; | ||
|
||
virtual void Release( | ||
LLGL::Shader& shader | ||
) override final; | ||
|
||
|
||
|
||
// ================================================================================ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
/* | ||
* RenderSystem.SwapChain.inl | ||
* | ||
* Copyright (c) 2015 Lukas Hermanns. All rights reserved. | ||
* Licensed under the terms of the BSD 3-Clause license (see LICENSE.txt). | ||
*/ | ||
|
||
/* ----- Swap-chain ----- */ | ||
|
||
virtual LLGL::SwapChain* CreateSwapChain( | ||
const LLGL::SwapChainDescriptor& swapChainDesc, | ||
const std::shared_ptr<LLGL::Surface>& surface = {} | ||
) override final; | ||
|
||
virtual void Release( | ||
LLGL::SwapChain& swapChain | ||
) override final; | ||
|
||
|
||
|
||
// ================================================================================ |
Oops, something went wrong.