-
Notifications
You must be signed in to change notification settings - Fork 137
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Moved CommandBuffer function declarations into <LLGL/Backend/*.inl> f…
…iles.
- Loading branch information
1 parent
8f8a7da
commit 3292c73
Showing
27 changed files
with
600 additions
and
1,469 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
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,75 @@ | ||
/* | ||
* CommandBuffer.Blitting.inl | ||
* | ||
* Copyright (c) 2015 Lukas Hermanns. All rights reserved. | ||
* Licensed under the terms of the BSD 3-Clause license (see LICENSE.txt). | ||
*/ | ||
|
||
/* ----- Blitting ----- */ | ||
|
||
virtual void UpdateBuffer( | ||
Buffer& dstBuffer, | ||
std::uint64_t dstOffset, | ||
const void* data, | ||
std::uint16_t dataSize | ||
) override final; | ||
|
||
virtual void CopyBuffer( | ||
Buffer& dstBuffer, | ||
std::uint64_t dstOffset, | ||
Buffer& srcBuffer, | ||
std::uint64_t srcOffset, | ||
std::uint64_t size | ||
) override final; | ||
|
||
virtual void CopyBufferFromTexture( | ||
Buffer& dstBuffer, | ||
std::uint64_t dstOffset, | ||
Texture& srcTexture, | ||
const TextureRegion& srcRegion, | ||
std::uint32_t rowStride = 0, | ||
std::uint32_t layerStride = 0 | ||
) override final; | ||
|
||
virtual void FillBuffer( | ||
Buffer& dstBuffer, | ||
std::uint64_t dstOffset, | ||
std::uint32_t value, | ||
std::uint64_t fillSize = Constants::wholeSize | ||
) override final; | ||
|
||
virtual void CopyTexture( | ||
Texture& dstTexture, | ||
const TextureLocation& dstLocation, | ||
Texture& srcTexture, | ||
const TextureLocation& srcLocation, | ||
const Extent3D& extent | ||
) override final; | ||
|
||
virtual void CopyTextureFromBuffer( | ||
Texture& dstTexture, | ||
const TextureRegion& dstRegion, | ||
Buffer& srcBuffer, | ||
std::uint64_t srcOffset, | ||
std::uint32_t rowStride = 0, | ||
std::uint32_t layerStride = 0 | ||
) override final; | ||
|
||
virtual void CopyTextureFromFramebuffer( | ||
Texture& dstTexture, | ||
const TextureRegion& dstRegion, | ||
const Offset2D& srcOffset | ||
) override final; | ||
|
||
virtual void GenerateMips( | ||
Texture& texture | ||
) override final; | ||
|
||
virtual void GenerateMips( | ||
Texture& texture, | ||
const TextureSubresource& subresource | ||
) 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,23 @@ | ||
/* | ||
* CommandBuffer.Compute.inl | ||
* | ||
* Copyright (c) 2015 Lukas Hermanns. All rights reserved. | ||
* Licensed under the terms of the BSD 3-Clause license (see LICENSE.txt). | ||
*/ | ||
|
||
/* ----- Compute ----- */ | ||
|
||
virtual void Dispatch( | ||
std::uint32_t numWorkGroupsX, | ||
std::uint32_t numWorkGroupsY, | ||
std::uint32_t numWorkGroupsZ | ||
) override final; | ||
|
||
virtual void DispatchIndirect( | ||
Buffer& buffer, | ||
std::uint64_t offset | ||
) 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 @@ | ||
/* | ||
* CommandBuffer.Debugging.inl | ||
* | ||
* Copyright (c) 2015 Lukas Hermanns. All rights reserved. | ||
* Licensed under the terms of the BSD 3-Clause license (see LICENSE.txt). | ||
*/ | ||
|
||
/* ----- Debugging ----- */ | ||
|
||
virtual void PushDebugGroup( | ||
const char* name | ||
) override final; | ||
|
||
virtual void PopDebugGroup( | ||
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,86 @@ | ||
/* | ||
* CommandBuffer.Drawing.inl | ||
* | ||
* Copyright (c) 2015 Lukas Hermanns. All rights reserved. | ||
* Licensed under the terms of the BSD 3-Clause license (see LICENSE.txt). | ||
*/ | ||
|
||
/* ----- Drawing ----- */ | ||
|
||
virtual void Draw( | ||
std::uint32_t numVertices, | ||
std::uint32_t firstVertex | ||
) override final; | ||
|
||
virtual void DrawIndexed( | ||
std::uint32_t numIndices, | ||
std::uint32_t firstIndex | ||
) override final; | ||
|
||
virtual void DrawIndexed( | ||
std::uint32_t numIndices, | ||
std::uint32_t firstIndex, | ||
std::int32_t vertexOffset | ||
) override final; | ||
|
||
virtual void DrawInstanced( | ||
std::uint32_t numVertices, | ||
std::uint32_t firstVertex, | ||
std::uint32_t numInstances | ||
) override final; | ||
|
||
virtual void DrawInstanced( | ||
std::uint32_t numVertices, | ||
std::uint32_t firstVertex, | ||
std::uint32_t numInstances, | ||
std::uint32_t firstInstance | ||
) override final; | ||
|
||
virtual void DrawIndexedInstanced( | ||
std::uint32_t numIndices, | ||
std::uint32_t numInstances, | ||
std::uint32_t firstIndex | ||
) override final; | ||
|
||
virtual void DrawIndexedInstanced( | ||
std::uint32_t numIndices, | ||
std::uint32_t numInstances, | ||
std::uint32_t firstIndex, | ||
std::int32_t vertexOffset | ||
) override final; | ||
|
||
virtual void DrawIndexedInstanced( | ||
std::uint32_t numIndices, | ||
std::uint32_t numInstances, | ||
std::uint32_t firstIndex, | ||
std::int32_t vertexOffset, | ||
std::uint32_t firstInstance | ||
) override final; | ||
|
||
virtual void DrawIndirect( | ||
Buffer& buffer, | ||
std::uint64_t offset | ||
) override final; | ||
|
||
virtual void DrawIndirect( | ||
Buffer& buffer, | ||
std::uint64_t offset, | ||
std::uint32_t numCommands, | ||
std::uint32_t stride | ||
) override final; | ||
|
||
virtual void DrawIndexedIndirect( | ||
Buffer& buffer, | ||
std::uint64_t offset | ||
) override final; | ||
|
||
virtual void DrawIndexedIndirect( | ||
Buffer& buffer, | ||
std::uint64_t offset, | ||
std::uint32_t numCommands, | ||
std::uint32_t stride | ||
) 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,24 @@ | ||
/* | ||
* CommandBuffer.Encoding.inl | ||
* | ||
* Copyright (c) 2015 Lukas Hermanns. All rights reserved. | ||
* Licensed under the terms of the BSD 3-Clause license (see LICENSE.txt). | ||
*/ | ||
|
||
/* ----- Encoding ----- */ | ||
|
||
virtual void Begin( | ||
void | ||
) override final; | ||
|
||
virtual void End( | ||
void | ||
) override final; | ||
|
||
virtual void Execute( | ||
CommandBuffer& deferredCommandBuffer | ||
) 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,17 @@ | ||
/* | ||
* CommandBuffer.Extensions.inl | ||
* | ||
* Copyright (c) 2015 Lukas Hermanns. All rights reserved. | ||
* Licensed under the terms of the BSD 3-Clause license (see LICENSE.txt). | ||
*/ | ||
|
||
/* ----- Extensions ----- */ | ||
|
||
virtual void SetGraphicsAPIDependentState( | ||
const void* stateDesc, | ||
std::size_t stateDescSize | ||
) 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 @@ | ||
/* | ||
* CommandBuffer.InputAssembly.inl | ||
* | ||
* Copyright (c) 2015 Lukas Hermanns. All rights reserved. | ||
* Licensed under the terms of the BSD 3-Clause license (see LICENSE.txt). | ||
*/ | ||
|
||
/* ----- Input Assembly ------ */ | ||
|
||
virtual void SetVertexBuffer( | ||
Buffer& buffer | ||
) override final; | ||
|
||
virtual void SetVertexBufferArray( | ||
BufferArray& bufferArray | ||
) override final; | ||
|
||
virtual void SetIndexBuffer( | ||
Buffer& buffer | ||
) override final; | ||
|
||
virtual void SetIndexBuffer( | ||
Buffer& buffer, | ||
const Format format, | ||
std::uint64_t offset = 0 | ||
) 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,31 @@ | ||
/* | ||
* CommandBuffer.PipelineStates.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 void SetPipelineState( | ||
PipelineState& pipelineState | ||
) override final; | ||
|
||
virtual void SetBlendFactor( | ||
const float color[4] | ||
) override final; | ||
|
||
virtual void SetStencilReference( | ||
std::uint32_t reference, | ||
const StencilFace stencilFace = StencilFace::FrontAndBack | ||
) override final; | ||
|
||
virtual void SetUniforms( | ||
std::uint32_t first, | ||
const void* data, | ||
std::uint16_t dataSize | ||
) 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,32 @@ | ||
/* | ||
* CommandBuffer.Queries.inl | ||
* | ||
* Copyright (c) 2015 Lukas Hermanns. All rights reserved. | ||
* Licensed under the terms of the BSD 3-Clause license (see LICENSE.txt). | ||
*/ | ||
|
||
/* ----- Queries ----- */ | ||
|
||
virtual void BeginQuery( | ||
QueryHeap& queryHeap, | ||
std::uint32_t query | ||
) override final; | ||
|
||
virtual void EndQuery( | ||
QueryHeap& queryHeap, | ||
std::uint32_t query | ||
) override final; | ||
|
||
virtual void BeginRenderCondition( | ||
QueryHeap& queryHeap, | ||
std::uint32_t query, | ||
const RenderConditionMode mode | ||
) override final; | ||
|
||
virtual void EndRenderCondition( | ||
void | ||
) override final; | ||
|
||
|
||
|
||
// ================================================================================ |
Oops, something went wrong.