wiGraphics refactors (#359)
* Mark concrete graphics device classes as final - they should not be inherited from further. * Apply consistent snake_cast naming (which has been used in more recent additions) across wiGraphics structs * Make 'CommandList' type safe so that calling graphics device functions is less error-prone. * Decouple wiProfiler from wiRenderer by passing the device instance to functions instead of using wiRenderer::GetDevice(). * Bump minor version for graphics refactors. * Decouple wiHelper screenshot/saveTexture* functions from wiRenderer by providing the graphics device as a parameter. * Convert wiGraphics.h enums to use enum class (except a couple of raytracing flag enums which seem best left) * hdr fix * Documentation updates for enum class. * Revert "Decouple wiHelper screenshot/saveTexture* functions from wiRenderer by providing the graphics device as a parameter." This reverts commitfd70249554. * Revert "Decouple wiProfiler from wiRenderer by passing the device instance to functions instead of using wiRenderer::GetDevice()." This reverts commit69b5326cfc. * Fix debug build * Fix gcc build (hopefully). Move bitmask operator defs to end of file outside of wiGraphics namespace. * Remove 'to_underlying' and replace with casts * graphics device access decoupled from wiRenderer, now should be accessed from wiGraphics::GetDevice() * minor refactors, comments * dx12 assert fix * fixes * commandlist refactor * commandlist initial value * commandlist refactor * graphicsdevice comments, GetActivePipelineCount() function * has changed to has_flag * just rename a thing Co-authored-by: Turánszki János <turanszkij@users.noreply.github.com>
This commit is contained in:
@@ -59,7 +59,7 @@ void PostprocessWindow::Create(EditorComponent* editor)
|
||||
aoComboBox.AddItem("SSAO");
|
||||
aoComboBox.AddItem("HBAO");
|
||||
aoComboBox.AddItem("MSAO");
|
||||
if (wiRenderer::GetDevice()->CheckCapability(GRAPHICSDEVICE_CAPABILITY_RAYTRACING))
|
||||
if (wiGraphics::GetDevice()->CheckCapability(GraphicsDeviceCapability::RAYTRACING))
|
||||
{
|
||||
aoComboBox.AddItem("RTAO");
|
||||
}
|
||||
@@ -142,7 +142,7 @@ void PostprocessWindow::Create(EditorComponent* editor)
|
||||
editor->renderPath->setRaytracedReflectionsEnabled(args.bValue);
|
||||
});
|
||||
AddWidget(&raytracedReflectionsCheckBox);
|
||||
raytracedReflectionsCheckBox.SetEnabled(wiRenderer::GetDevice()->CheckCapability(GRAPHICSDEVICE_CAPABILITY_RAYTRACING));
|
||||
raytracedReflectionsCheckBox.SetEnabled(wiGraphics::GetDevice()->CheckCapability(GraphicsDeviceCapability::RAYTRACING));
|
||||
|
||||
screenSpaceShadowsCheckBox.Create("SS Shadows: ");
|
||||
screenSpaceShadowsCheckBox.SetTooltip("Enable screen space contact shadows. This can add small shadows details to shadow maps in screen space.");
|
||||
|
||||
Reference in New Issue
Block a user