Finished first pass BeginRenderPass.
This commit is contained in:
@@ -1,7 +1,8 @@
|
||||
#pragma once
|
||||
|
||||
#include <core/Common/NonNullPtr.h>
|
||||
#include <Core/Common/NonNullPtr.h>
|
||||
#include <Core/HAL/Display/Display.h>
|
||||
#include <Core/Math/Shape.h>
|
||||
#include <Graphics/GraphicsConfig.h>
|
||||
#include <Graphics/RenderPass.h>
|
||||
#include <Juliet.h>
|
||||
@@ -67,6 +68,16 @@ namespace Juliet
|
||||
Immediate
|
||||
};
|
||||
|
||||
struct GraphicsViewPort
|
||||
{
|
||||
float X;
|
||||
float Y;
|
||||
float Width;
|
||||
float Height;
|
||||
float MinDepth;
|
||||
float MaxDepth;
|
||||
};
|
||||
|
||||
extern JULIET_API GraphicsDevice* CreateGraphicsDevice(GraphicsConfig config);
|
||||
extern JULIET_API void DestroyGraphicsDevice(NonNullPtr<GraphicsDevice> device);
|
||||
|
||||
@@ -86,4 +97,9 @@ namespace Juliet
|
||||
extern JULIET_API RenderPass* BeginRenderPass(NonNullPtr<CommandList> commandList, ColorTargetInfo& colorTargetInfo);
|
||||
extern JULIET_API RenderPass* BeginRenderPass(NonNullPtr<CommandList> commandList,
|
||||
NonNullPtr<const ColorTargetInfo> colorTargetInfos, uint32 colorTargetInfoCount);
|
||||
|
||||
extern JULIET_API void SetGraphicsViewPort(NonNullPtr<RenderPass> renderPass, const GraphicsViewPort& viewPort);
|
||||
extern JULIET_API void SetScissorRect(NonNullPtr<RenderPass> renderPass, const Rectangle& rectangle);
|
||||
extern JULIET_API void SetBlendConstants(NonNullPtr<RenderPass> renderPass, FColor blendConstants);
|
||||
extern JULIET_API void SetStencilReference(NonNullPtr<RenderPass> renderPass, uint8 reference);
|
||||
} // namespace Juliet
|
||||
|
||||
@@ -22,17 +22,23 @@ namespace Juliet
|
||||
|
||||
struct ColorTargetInfo
|
||||
{
|
||||
Texture* Texture;
|
||||
uint32 MipLevel;
|
||||
Texture* TargetTexture;
|
||||
uint32 MipLevel;
|
||||
union
|
||||
{
|
||||
uint32 DepthPlane;
|
||||
uint32 LayerCount;
|
||||
uint32 LayerIndex;
|
||||
};
|
||||
bool CycleTexture; // Whether the texture should be cycled if already bound (and load operation != LOAD)
|
||||
|
||||
Texture* ResolveTexture;
|
||||
uint32 ResolveMipLevel;
|
||||
uint32 ResolveLayerIndex;
|
||||
bool CycleResolveTexture;
|
||||
|
||||
FColor ClearColor;
|
||||
LoadOperation LoadOperation;
|
||||
StoreOperation StoreOperation;
|
||||
bool Cycle; // Whether the texture should be cycled if already bound (and load operation != LOAD)
|
||||
};
|
||||
|
||||
// Opaque Type
|
||||
|
||||
Reference in New Issue
Block a user