|
SleakEngine 0.1.0
C++23 multi-backend game engine
|
#include <VulkanRenderer.hpp>
Public Member Functions | |
| VulkanRenderer (Window *window) | |
| ~VulkanRenderer () | |
| Calls Cleanup() to tear down all Vulkan resources. | |
| void | ApplyMSAAChange () override |
| void | ApplyShadowResolutionChange () override |
| Recreates the extent-dependent shadow map objects at the queued resolution. | |
| void | ApplyVSyncChange () override |
| Recreates the swapchain to apply a queued VSync toggle. | |
| virtual void | BeginCustomFormatPass (VertexFormatHandle format) override |
| Binds the custom-format pipeline matching the currently active render pass. | |
| virtual void | BeginDebugLinePass () override |
| Binds the debug line pipeline for the current frame. | |
| virtual void | BeginForwardTransparentPass () override |
| Begins the forward transparent render pass over the HDR scene image. | |
| virtual void | BeginRender () override |
| virtual void | BeginShadowPass () override |
| Marks the shadow pass active and invalidates the push constant cache. | |
| virtual void | BeginSkinnedPass () override |
| Binds the skinned pipeline matching the currently active render pass. | |
| virtual void | BeginSkyboxPass () override |
| Binds the skybox pipeline and its descriptor set for the current frame. | |
| virtual void | BindBoneBuffer (RefPtr< BufferBase > buffer) override |
| Copies bone matrices into their own bone ring slot and binds it. | |
| virtual void | BindConstantBuffer (RefPtr< BufferBase > buffer, uint32_t slot=0) override |
| virtual void | BindGBufferShader () override |
| virtual void | BindIndexBuffer (RefPtr< BufferBase > buffer, uint32_t slot=0) override |
| Binds a 32-bit index buffer. | |
| virtual void | BindPBRMaterial (Sleak::Material *material) override |
| Writes a material's textures and params into its ring slot and binds it at set 0. | |
| virtual void | BindTexture (RefPtr< Sleak::Texture > texture, uint32_t slot=0) override |
| Binds a texture's descriptor set at slot 0, skipping cubemaps and the GBuffer geometry pass. | |
| virtual void | BindTextureRaw (Sleak::Texture *texture, uint32_t slot=0) override |
| Raw-pointer variant of BindTexture. | |
| virtual void | BindVertexBuffer (RefPtr< BufferBase > buffer, uint32_t slot=0) override |
| virtual void | Cleanup () override |
| Tears down every Vulkan resource in reverse dependency order. | |
| virtual void | ClearDepthStencil (bool clearDepth, bool clearStencil, float depth, uint8_t stencil) override |
| No-op; depth/stencil clears are driven by the render pass clear values. | |
| virtual void | ClearRenderTarget (float r, float g, float b, float a) override |
| Stores the clear color used by the next BeginRender. | |
| virtual BufferBase * | CreateBuffer (BufferType Type, uint32_t size, void *data) override |
| Allocates and initializes a VulkanBuffer. | |
| Texture * | CreateCubemapTexture (const std::array< std::string, 6 > &facePaths) |
| Loads a cubemap from six face images and writes it into the skybox descriptor sets. | |
| Texture * | CreateCubemapTextureFromPanorama (const std::string &panoramaPath) |
| Loads an equirectangular panorama as a cubemap and writes it into the skybox descriptor sets. | |
| virtual bool | CreateImGUI () override |
| Initializes ImGui and its Vulkan backend against the active render pass. | |
| virtual Shader * | CreateShader (const std::string &shaderSource) override |
| Compiles a VulkanShader from source. | |
| virtual Texture * | CreateTexture (const std::string &TexturePath) override |
| Loads a texture from disk and writes its descriptor sets. | |
| virtual Texture * | CreateTextureFromData (uint32_t width, uint32_t height, void *data) override |
| Loads a texture from an in-memory RGBA8 buffer. | |
| virtual void | Draw (uint32_t vertexCount) override |
| Issues a non-indexed draw call and updates the vertex/triangle counters. | |
| virtual void | Draw (uint32_t vertexCount, uint32_t firstVertex) override |
| Non-indexed draw starting at firstVertex. | |
| virtual void | DrawIndexed (uint32_t indexCount) override |
| Issues an indexed draw call and updates the vertex/triangle counters. | |
| virtual void | DrawIndexed (uint32_t indexCount, uint32_t firstIndex, int32_t baseVertex) override |
| Indexed draw starting at firstIndex with a base vertex offset. | |
| virtual void | DrawIndexedInstance (uint32_t instanceCount, uint32_t indexPerInstance) override |
| Issues an instanced, indexed draw call. | |
| virtual void | DrawIndexedInstance (uint32_t instanceCount, uint32_t indexPerInstance, uint32_t firstIndex, int32_t baseVertex) override |
| Instanced indexed draw starting at firstIndex with a base vertex offset. | |
| virtual void | DrawInstance (uint32_t instanceCount, uint32_t vertexPerInstance) override |
| Issues an instanced, non-indexed draw call. | |
| virtual void | EndCustomFormatPass () override |
| Restores the previous pipeline and descriptor set after custom-format draws. | |
| virtual void | EndDebugLinePass () override |
| Restores the previous pipeline and descriptor set after debug line draws. | |
| virtual void | EndForwardTransparentPass () override |
| Marks the forward transparent pass ended; EndRender closes the actual render pass. | |
| virtual void | EndRender () override |
| Ends the active render pass, submits the command buffer, and presents. | |
| virtual void | EndShadowPass () override |
| Marks the shadow pass inactive. | |
| virtual void | EndSkinnedPass () override |
| Restores the previous pipeline after skinned draws. | |
| virtual void | EndSkyboxPass () override |
| Restores the previous pipeline and descriptor set after the skybox draw. | |
| virtual void | ExecuteDeferredLightingPass () override |
| Runs the deferred lighting pass, reading the GBuffer and writing the HDR scene image. | |
| virtual void | FlushPendingTransfers () override |
| virtual RenderContext * | GetContext () override |
| Returns the backend's command-recording interface. | |
| virtual uint32_t | GetFeatureCaps () const override |
| Feature capability mask; backends override with the audited truth. | |
| virtual size_t | GetGPUMemoryBudget () const override |
| Returns the device-local heap size reported by the allocator. | |
| virtual size_t | GetGPUMemoryUsed () const override |
| Returns total bytes currently allocated by VulkanBuffer. | |
| bool | GetRender () |
| virtual bool | Initialize () override |
| virtual bool | IsDeferredEnabled () const override |
| bool | IsFrameCapturePending () const override |
| True while an armed capture has not been written yet. | |
| virtual bool | IsInGeometryPass () const override |
| virtual bool | IsShadowPassActive () const override |
| void | RegisterBenchmarkMetrics (Benchmark &bench) override |
| Adds per-pass GPU millisecond columns when –gpuprofile is on. | |
| bool | RequestFrameCapture (const std::string &path) override |
| Arms a UI-free readback of the next presented frame into a binary PPM. | |
| virtual void | Resize (uint32_t width, uint32_t height) override |
| Recreates the swapchain for the new window dimensions. | |
| void | SetLightVP (const float *lightVP) override |
| Stages the light view-projection matrix for commit at the next BeginRender. | |
| void | SetRender (bool value) |
| virtual void | SetRenderFace (RenderFace face) override |
| Stores the cull face for the next pipeline rebuild (Vulkan state is baked). | |
| virtual void | SetRenderMode (RenderMode mode) override |
| Stores the polygon mode for the next pipeline rebuild (Vulkan state is baked). | |
| virtual void | SetViewport (float x, float y, float width, float height, float minDepth=0.0f, float maxDepth=1.0f) override |
| Sets the dynamic viewport on the active command buffer. | |
| virtual void | UpdateDeferredCB (const void *data, uint32_t size) override |
| Copies deferred CB data into the current frame's UBO and snapshots the camera matrices. | |
| void | UpdateShadowLightUBO (const void *data, uint32_t size) override |
| Copies light and shadow data into the current frame's mapped UBO. | |
| virtual void | WaitIdle () override |
| Blocks until the device finishes all submitted GPU work. | |
| Public Member Functions inherited from Sleak::RenderEngine::Renderer | |
| virtual | ~Renderer ()=0 |
| float | GetCPUUsage () const |
| bool | GetDeferredEnabled () const |
| float | GetExposure () const |
| int | GetFrameRate () const |
| float | GetFrameTime () const |
| float | GetGamma () const |
| float | GetIBLIntensity () const |
| bool | GetImGUIEnabled () |
| bool | GetIsPerformanceCounter () |
| uint32_t | GetMaxMSAASampleCount () const |
| uint32_t | GetMSAASampleCount () const |
| float | GetRamUsage () const |
| RenderMode | GetRenderMode () const |
| uint32_t | GetShadowMapResolution () const |
| float | GetSharpenStrength () const |
| float | GetSSAOBias () const |
| float | GetSSAOPower () const |
| float | GetSSAORadius () const |
| int | GetTriangles () const |
| RendererType | GetType () const |
| const char * | GetTypeStr () const |
| int | GetVertices () const |
| bool | GetVSync () const |
| bool | IsBloomEnabled () const |
| bool | IsIBLEnabled () const |
| bool | IsPCSSEnabled () const |
| bool | IsShadowPassEnabled () const |
| bool | IsSSAOEnabled () const |
| bool | IsSSREnabled () const |
| bool | IsTAAEnabled () const |
| bool | IsTonemappingEnabled () const |
| virtual bool | ReloadShaders (const std::vector< std::string > &stems) |
| void | SetBloomEnabled (bool enabled) |
| void | SetDeferredEnabled (bool enabled) |
| void | SetExposure (float exposure) |
| void | SetGamma (float gamma) |
| void | SetIBLEnabled (bool enabled) |
| void | SetIBLIntensity (float intensity) |
| void | SetImGUI (bool bEnable) |
| virtual void | SetMSAASampleCount (uint32_t samples) |
| Requests a new MSAA sample count; rejects invalid values and samples above 1 while deferred shading is on. | |
| void | SetPCSSEnabled (bool enabled) |
| void | SetPerformanceCounter (bool value) |
| void | SetRenderCullFace (RenderFace face) |
| void | SetRenderDrawMode (RenderMode mode) |
| void | SetShadowMapResolution (uint32_t res) |
| Requests a new shadow map size, clamped to [256, 8192] and queued if resources already exist. | |
| void | SetShadowPassEnabled (bool enabled) |
| void | SetSharpenStrength (float strength) |
| Contrast-adaptive sharpening applied after TAA, 0 = off, 1 = strongest. | |
| void | SetSSAOBias (float bias) |
| void | SetSSAOEnabled (bool enabled) |
| void | SetSSAOPower (float power) |
| void | SetSSAORadius (float radius) |
| void | SetSSREnabled (bool enabled) |
| void | SetTAAEnabled (bool enabled) |
| void | SetTonemappingEnabled (bool enabled) |
| virtual void | SetVSync (bool enabled) |
| Public Member Functions inherited from Sleak::RenderEngine::RenderContext | |
| virtual void | SetCullEnabled (bool enabled) |
| virtual void | SetDepthCompare (DepthCompare compare) |
| virtual void | SetDepthWrite (bool enabled) |
Additional Inherited Members | |
| Protected Member Functions inherited from Sleak::RenderEngine::Renderer | |
| void | UpdateFrameMetrics () |
| Rolls up frame count into rate/time/triangle stats once per MetricUpdateInterval. | |
| Protected Attributes inherited from Sleak::RenderEngine::Renderer | |
| bool | bEnabledPerformanceCounter = false |
| bool | bImFrameActive = false |
| bool | bImInitialized = false |
| int | DisplayTriangles = 0 |
| int | DisplayVertices = 0 |
| int | DrawnTriangles = 0 |
| int | DrawnVertices = 0 |
| RenderFace | Face |
| int | frameRate = 0 |
| float | frameTime = 0 |
| bool | m_bloomEnabled = true |
| float | m_bloomIntensity = 1.0f |
| float | m_bloomRadius = 1.0f |
| bool | m_deferredEnabled = true |
| float | m_exposure = 1.0f |
| uint32_t | m_frameCount = 0 |
| Timer | m_frameTimer |
| float | m_gamma = 2.2f |
| bool | m_iblEnabled = false |
| float | m_iblIntensity = 0.5f |
| uint32_t | m_maxMsaaSampleCount = 1 |
| bool | m_msaaChangeRequested = false |
| uint32_t | m_msaaSampleCount = 1 |
| bool | m_pcssEnabled = true |
| uint32_t | m_pendingMsaaSampleCount = 1 |
| uint32_t | m_pendingShadowMapResolution = 2048 |
| uint32_t | m_shadowMapResolution = 2048 |
| bool | m_shadowPassEnabled = false |
| bool | m_shadowResChangeRequested = false |
| bool | m_shadowResourcesCreated = false |
| float | m_sharpenStrength = 0.0f |
| float | m_ssaoBias = 0.025f |
| bool | m_ssaoEnabled = false |
| float | m_ssaoPower = 2.0f |
| float | m_ssaoRadius = 0.8f |
| int | m_ssrBinarySteps = 6 |
| bool | m_ssrEnabled = false |
| float | m_ssrMaxDistance = 20.0f |
| float | m_ssrRoughnessThreshold = 0.9f |
| int | m_ssrSteps = 20 |
| float | m_ssrThickness = 0.5f |
| float | m_taaBlendFactor = 0.1f |
| bool | m_taaEnabled = false |
| bool | m_tonemapEnabled = false |
| bool | m_vsync = false |
| bool | m_vsyncChangeRequested = false |
| RenderMode | Mode |
| RendererType | Type |
| float | UsedCPU = 0 |
| float | UsedRam = 0 |
| Static Protected Attributes inherited from Sleak::RenderEngine::Renderer | |
| static constexpr float | MetricUpdateInterval = 0.5f |
Vulkan backend for Renderer/RenderContext: owns the device, swapchain, and per-frame command recording. Implementation spans this file plus the Vulkan* subsystem TUs (Device, Swapchain, Pipelines, Shadow, etc.).
Definition at line 58 of file VulkanRenderer.hpp.
| Sleak::RenderEngine::VulkanRenderer::VulkanRenderer | ( | Window * | window | ) |
Constructs the renderer, sets the clear color, and registers ResourceManager factory callbacks.
Definition at line 44 of file VulkanRenderer.cpp.
| Sleak::RenderEngine::VulkanRenderer::~VulkanRenderer | ( | ) |
Calls Cleanup() to tear down all Vulkan resources.
Definition at line 74 of file VulkanRenderer.cpp.
|
overridevirtual |
Rebuilds the swapchain-dependent pipelines and render pass for a queued MSAA sample count change.
Reimplemented from Sleak::RenderEngine::Renderer.
Definition at line 1417 of file VulkanRenderer.cpp.
|
overridevirtual |
Recreates the extent-dependent shadow map objects at the queued resolution.
Recreates the extent-dependent shadow map objects (image, view, framebuffer) at the queued resolution. Keep in sync with CreateShadowResources; samplers, render pass, and pipeline are extent-independent.
Reimplemented from Sleak::RenderEngine::Renderer.
Definition at line 1614 of file VulkanRenderer.cpp.
|
overridevirtual |
Recreates the swapchain to apply a queued VSync toggle.
Reimplemented from Sleak::RenderEngine::Renderer.
Definition at line 1525 of file VulkanRenderer.cpp.
|
overridevirtual |
Binds the custom-format pipeline matching the currently active render pass.
Reimplemented from Sleak::RenderEngine::RenderContext.
Definition at line 1132 of file VulkanPipelines.cpp.
|
overridevirtual |
Binds the debug line pipeline for the current frame.
Reimplemented from Sleak::RenderEngine::RenderContext.
Definition at line 1211 of file VulkanPipelines.cpp.
|
overridevirtual |
Begins the forward transparent render pass over the HDR scene image.
Reimplemented from Sleak::RenderEngine::RenderContext.
Definition at line 1225 of file VulkanDeferred.cpp.
|
overridevirtual |
Acquires a swapchain image and begins the shadow/GBuffer/forward passes; drawing happens via the RenderContext methods below.
Acquires a swapchain image and begins the shadow/GBuffer/forward passes for the RenderCommandQueue to record into. A failed acquire returns early with only a UI frame open, leaving deletions unaged and uploads batched.
Implements Sleak::RenderEngine::Renderer.
Definition at line 178 of file VulkanRenderer.cpp.
|
overridevirtual |
Marks the shadow pass active and invalidates the push constant cache.
Reimplemented from Sleak::RenderEngine::RenderContext.
Definition at line 589 of file VulkanShadow.cpp.
|
overridevirtual |
Binds the skinned pipeline matching the currently active render pass.
Reimplemented from Sleak::RenderEngine::RenderContext.
Definition at line 1414 of file VulkanPipelines.cpp.
|
overridevirtual |
Binds the skybox pipeline and its descriptor set for the current frame.
Reimplemented from Sleak::RenderEngine::RenderContext.
Definition at line 170 of file VulkanPipelines.cpp.
|
overridevirtual |
Copies bone matrices into their own bone ring slot and binds it.
Copies bone matrices into this bind's own slot of the frame's bone ring and binds set 1 at that slot, so every skinned draw keeps its palette.
Reimplemented from Sleak::RenderEngine::RenderContext.
Definition at line 456 of file VulkanDescriptors.cpp.
|
overridevirtual |
Pushes constant-buffer data via push constants, applying TAA jitter or the shadow push-constant cache as needed.
Pushes constant-buffer data via push constants, applying TAA jitter or the shadow push-constant cache. A shadow push that would repeat the bytes already pushed in this pass is skipped.
Implements Sleak::RenderEngine::RenderContext.
Definition at line 788 of file VulkanRenderer.cpp.
|
overridevirtual |
Binds the GBuffer pipeline and marks the geometry pass active. Called by RenderCommandQueue when deferred is active.
Reimplemented from Sleak::RenderEngine::RenderContext.
Definition at line 1114 of file VulkanDeferred.cpp.
|
overridevirtual |
Binds a 32-bit index buffer.
Implements Sleak::RenderEngine::RenderContext.
Definition at line 776 of file VulkanRenderer.cpp.
|
overridevirtual |
Writes a material's textures and params into its ring slot and binds it at set 0.
Reimplemented from Sleak::RenderEngine::RenderContext.
Definition at line 657 of file VulkanDescriptors.cpp.
|
overridevirtual |
Binds a texture's descriptor set at slot 0, skipping cubemaps and the GBuffer geometry pass.
Binds a texture's descriptor set at slot 0, skipping cubemaps and the GBuffer geometry pass.
Reimplemented from Sleak::RenderEngine::RenderContext.
Definition at line 1015 of file VulkanRenderer.cpp.
|
overridevirtual |
Raw-pointer variant of BindTexture.
Reimplemented from Sleak::RenderEngine::RenderContext.
Definition at line 1045 of file VulkanRenderer.cpp.
|
overridevirtual |
Binds a vertex buffer slot, switching to the pipeline built for the buffer's registered vertex format.
Binds a vertex buffer slot, switching to the pipeline that matches the buffer's registered vertex format.
Implements Sleak::RenderEngine::RenderContext.
Definition at line 757 of file VulkanRenderer.cpp.
|
overridevirtual |
Tears down every Vulkan resource in reverse dependency order.
Implements Sleak::RenderEngine::Renderer.
Definition at line 1114 of file VulkanRenderer.cpp.
|
overridevirtual |
No-op; depth/stencil clears are driven by the render pass clear values.
Implements Sleak::RenderEngine::RenderContext.
Definition at line 750 of file VulkanRenderer.cpp.
|
overridevirtual |
Stores the clear color used by the next BeginRender.
Implements Sleak::RenderEngine::RenderContext.
Definition at line 744 of file VulkanRenderer.cpp.
|
overridevirtual |
Allocates and initializes a VulkanBuffer.
Implements Sleak::RenderEngine::RenderContext.
Definition at line 868 of file VulkanRenderer.cpp.
| Sleak::Texture * Sleak::RenderEngine::VulkanRenderer::CreateCubemapTexture | ( | const std::array< std::string, 6 > & | facePaths | ) |
Loads a cubemap from six face images and writes it into the skybox descriptor sets.
Loads a cubemap from six face images and writes it into the skybox descriptor sets.
Definition at line 916 of file VulkanRenderer.cpp.
| Sleak::Texture * Sleak::RenderEngine::VulkanRenderer::CreateCubemapTextureFromPanorama | ( | const std::string & | panoramaPath | ) |
Loads an equirectangular panorama as a cubemap and writes it into the skybox descriptor sets.
Loads an equirectangular panorama as a cubemap and writes it into the skybox descriptor sets.
Definition at line 965 of file VulkanRenderer.cpp.
|
overridevirtual |
Initializes ImGui and its Vulkan backend against the active render pass.
Implements Sleak::RenderEngine::Renderer.
Definition at line 242 of file VulkanDescriptors.cpp.
|
overridevirtual |
Compiles a VulkanShader from source.
Implements Sleak::RenderEngine::RenderContext.
Definition at line 880 of file VulkanRenderer.cpp.
|
overridevirtual |
Loads a texture from disk and writes its descriptor sets.
Implements Sleak::RenderEngine::RenderContext.
Definition at line 890 of file VulkanRenderer.cpp.
|
overridevirtual |
Loads a texture from an in-memory RGBA8 buffer.
Implements Sleak::RenderEngine::RenderContext.
Definition at line 902 of file VulkanRenderer.cpp.
|
overridevirtual |
Issues a non-indexed draw call and updates the vertex/triangle counters.
Implements Sleak::RenderEngine::RenderContext.
Definition at line 663 of file VulkanRenderer.cpp.
|
overridevirtual |
Non-indexed draw starting at firstVertex.
Implements Sleak::RenderEngine::RenderContext.
Definition at line 665 of file VulkanRenderer.cpp.
|
overridevirtual |
Issues an indexed draw call and updates the vertex/triangle counters.
Implements Sleak::RenderEngine::RenderContext.
Definition at line 676 of file VulkanRenderer.cpp.
|
overridevirtual |
Indexed draw starting at firstIndex with a base vertex offset.
Implements Sleak::RenderEngine::RenderContext.
Definition at line 680 of file VulkanRenderer.cpp.
|
overridevirtual |
Issues an instanced, indexed draw call.
Implements Sleak::RenderEngine::RenderContext.
Definition at line 700 of file VulkanRenderer.cpp.
|
overridevirtual |
Instanced indexed draw starting at firstIndex with a base vertex offset.
Implements Sleak::RenderEngine::RenderContext.
Definition at line 705 of file VulkanRenderer.cpp.
|
overridevirtual |
Issues an instanced, non-indexed draw call.
Implements Sleak::RenderEngine::RenderContext.
Definition at line 692 of file VulkanRenderer.cpp.
|
overridevirtual |
Restores the previous pipeline and descriptor set after custom-format draws.
Reimplemented from Sleak::RenderEngine::RenderContext.
Definition at line 1168 of file VulkanPipelines.cpp.
|
overridevirtual |
Restores the previous pipeline and descriptor set after debug line draws.
Reimplemented from Sleak::RenderEngine::RenderContext.
Definition at line 1223 of file VulkanPipelines.cpp.
|
overridevirtual |
Marks the forward transparent pass ended; EndRender closes the actual render pass.
Reimplemented from Sleak::RenderEngine::RenderContext.
Definition at line 1279 of file VulkanDeferred.cpp.
|
overridevirtual |
Ends the active render pass, submits the command buffer, and presents.
Ends the active render pass, submits the command buffer, and presents. A skipped frame only closes its UI frame.
Implements Sleak::RenderEngine::Renderer.
Definition at line 498 of file VulkanRenderer.cpp.
|
overridevirtual |
Marks the shadow pass inactive.
Reimplemented from Sleak::RenderEngine::RenderContext.
Definition at line 596 of file VulkanShadow.cpp.
|
overridevirtual |
Restores the previous pipeline after skinned draws.
Reimplemented from Sleak::RenderEngine::RenderContext.
Definition at line 1436 of file VulkanPipelines.cpp.
|
overridevirtual |
Restores the previous pipeline and descriptor set after the skybox draw.
Reimplemented from Sleak::RenderEngine::RenderContext.
Definition at line 191 of file VulkanPipelines.cpp.
|
overridevirtual |
Runs the deferred lighting pass, reading the GBuffer and writing the HDR scene image.
Reimplemented from Sleak::RenderEngine::RenderContext.
Definition at line 1125 of file VulkanDeferred.cpp.
|
overridevirtual |
Submits the open upload batch for this frame. A frame that failed to start leaves it open, so it rides along with the next submitted frame.
Reimplemented from Sleak::RenderEngine::Renderer.
Definition at line 1097 of file VulkanRenderer.cpp.
|
inlineoverridevirtual |
Returns the backend's command-recording interface.
Implements Sleak::RenderEngine::Renderer.
Definition at line 97 of file VulkanRenderer.hpp.
|
inlineoverridevirtual |
Feature capability mask; backends override with the audited truth.
Reimplemented from Sleak::RenderEngine::Renderer.
Definition at line 100 of file VulkanRenderer.hpp.
|
overridevirtual |
Returns the device-local heap size reported by the allocator.
Reimplemented from Sleak::RenderEngine::Renderer.
Definition at line 1109 of file VulkanRenderer.cpp.
|
overridevirtual |
Returns total bytes currently allocated by VulkanBuffer.
Reimplemented from Sleak::RenderEngine::Renderer.
Definition at line 1104 of file VulkanRenderer.cpp.
|
inline |
Definition at line 92 of file VulkanRenderer.hpp.
|
overridevirtual |
Runs the full Vulkan bring-up sequence: instance, device, swapchain, pipelines, and sync objects.
Implements Sleak::RenderEngine::Renderer.
Definition at line 80 of file VulkanRenderer.cpp.
|
inlineoverridevirtual |
Reimplemented from Sleak::RenderEngine::RenderContext.
Definition at line 207 of file VulkanRenderer.hpp.
|
inlineoverridevirtual |
True while an armed capture has not been written yet.
Reimplemented from Sleak::RenderEngine::Renderer.
Definition at line 244 of file VulkanRenderer.hpp.
|
inlineoverridevirtual |
Reimplemented from Sleak::RenderEngine::RenderContext.
Definition at line 208 of file VulkanRenderer.hpp.
|
inlineoverridevirtual |
Reimplemented from Sleak::RenderEngine::RenderContext.
Definition at line 198 of file VulkanRenderer.hpp.
|
overridevirtual |
Adds per-pass GPU millisecond columns when –gpuprofile is on.
Adds per-pass GPU millisecond columns when –gpuprofile is on. Values lag the CSV row by MAX_FRAMES_IN_FLIGHT frames.
Reimplemented from Sleak::RenderEngine::Renderer.
Definition at line 228 of file VulkanProfiler.cpp.
|
overridevirtual |
Arms a UI-free readback of the next presented frame into a binary PPM.
Reimplemented from Sleak::RenderEngine::Renderer.
Definition at line 59 of file VulkanCapture.cpp.
|
overridevirtual |
Recreates the swapchain for the new window dimensions.
Recreates the swapchain when the surface extent no longer matches it.
Implements Sleak::RenderEngine::Renderer.
Definition at line 1361 of file VulkanRenderer.cpp.
|
overridevirtual |
Stages the light view-projection matrix for commit at the next BeginRender.
Reimplemented from Sleak::RenderEngine::Renderer.
Definition at line 618 of file VulkanShadow.cpp.
|
inline |
Definition at line 91 of file VulkanRenderer.hpp.
|
overridevirtual |
Stores the cull face for the next pipeline rebuild (Vulkan state is baked).
Implements Sleak::RenderEngine::RenderContext.
Definition at line 716 of file VulkanRenderer.cpp.
|
overridevirtual |
Stores the polygon mode for the next pipeline rebuild (Vulkan state is baked).
Implements Sleak::RenderEngine::RenderContext.
Definition at line 723 of file VulkanRenderer.cpp.
|
overridevirtual |
Sets the dynamic viewport on the active command buffer.
Implements Sleak::RenderEngine::RenderContext.
Definition at line 729 of file VulkanRenderer.cpp.
|
overridevirtual |
Copies deferred CB data into the current frame's UBO and snapshots the camera matrices.
Reimplemented from Sleak::RenderEngine::RenderContext.
Definition at line 1285 of file VulkanDeferred.cpp.
|
overridevirtual |
Copies light and shadow data into the current frame's mapped UBO.
Copies light and shadow data into the current frame's mapped UBO. LightVP is replaced by the matrix the shadow map was rendered with, since the map is recorded in BeginRender before the caller stages a newer one.
Reimplemented from Sleak::RenderEngine::Renderer.
Definition at line 603 of file VulkanShadow.cpp.
|
overridevirtual |
Blocks until the device finishes all submitted GPU work.
Reimplemented from Sleak::RenderEngine::Renderer.
Definition at line 1091 of file VulkanRenderer.cpp.