Skip to content

Commit

Permalink
Added more *.inl files for interfaces to Backend/ folder.
Browse files Browse the repository at this point in the history
  • Loading branch information
LukasBanana committed Jul 3, 2023
1 parent bd35335 commit 6bf69ec
Show file tree
Hide file tree
Showing 61 changed files with 646 additions and 991 deletions.
41 changes: 41 additions & 0 deletions include/LLGL/Backend/CommandQueue.inl
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;



// ================================================================================
26 changes: 26 additions & 0 deletions include/LLGL/Backend/PipelineLayout.inl
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;



// ================================================================================
60 changes: 60 additions & 0 deletions include/LLGL/Backend/RenderSystem.Buffer.inl
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;



// ================================================================================
20 changes: 20 additions & 0 deletions include/LLGL/Backend/RenderSystem.CommandBuffer.inl
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;



// ================================================================================
16 changes: 16 additions & 0 deletions include/LLGL/Backend/RenderSystem.CommandQueue.inl
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;



// ================================================================================
20 changes: 20 additions & 0 deletions include/LLGL/Backend/RenderSystem.Fence.inl
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;



// ================================================================================
20 changes: 20 additions & 0 deletions include/LLGL/Backend/RenderSystem.PipelineLayout.inl
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;



// ================================================================================
30 changes: 30 additions & 0 deletions include/LLGL/Backend/RenderSystem.PipelineState.inl
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;



// ================================================================================
20 changes: 20 additions & 0 deletions include/LLGL/Backend/RenderSystem.QueryHeap.inl
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;



// ================================================================================
20 changes: 20 additions & 0 deletions include/LLGL/Backend/RenderSystem.RenderPass.inl
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;



// ================================================================================
20 changes: 20 additions & 0 deletions include/LLGL/Backend/RenderSystem.RenderTarget.inl
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;



// ================================================================================
27 changes: 27 additions & 0 deletions include/LLGL/Backend/RenderSystem.ResourceHeap.inl
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;



// ================================================================================
20 changes: 20 additions & 0 deletions include/LLGL/Backend/RenderSystem.Sampler.inl
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;



// ================================================================================
20 changes: 20 additions & 0 deletions include/LLGL/Backend/RenderSystem.Shader.inl
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;



// ================================================================================
21 changes: 21 additions & 0 deletions include/LLGL/Backend/RenderSystem.SwapChain.inl
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;



// ================================================================================
Loading

0 comments on commit 6bf69ec

Please sign in to comment.