2#include <NDEVR/BaseValues.h>
3#include "../../VulkanGraphics/Headers/VulkanSession.h"
4#include "../../VulkanGraphics/Headers/VulkanShader.h"
5#include <NDEVR/ResourceResolver.h>
6#include <NDEVR/QTResourceListener.h>
7#include <NDEVR/ViewportOptions.h>
30 if (s_session.isNull())
36 s_session->setActive(active);
38 GraphicsDevice::SetDefaultGraphicsDevice(s_session->device());
58 success |=
file.open(QIODevice::ReadOnly);
65 lib_assert(success,
"Bad shader: " + s);
The equivelent of std::vector but with a bit more control.
Provides a modifiable pointer that has shared ownership of a dynamically allocated object.
A ResourceListener which will always be executed on the main UI thread and can be tied to a Qt Object...
virtual void readShader(const StringView &shader) override
Reads and compiles a shader from resources.
static const DynamicPointer< GraphicsSession > & DefaultSession()
Returns the default shared graphics session, creating it if needed.
QtVulkanSession(const DynamicPointer< VulkanDevice > &device)
Constructs a QtVulkanSession with the given device.
static bool ResolveResource(const StringView &resource, const std::function< void(bool, const StringView &)> &on_finished=nullptr, bool ensure_unzipped=false)
Attempts to resolved a resource.
The core String View class for the NDEVR API.
t_type getAs() const
Converts a string into an object.
The core String class for the NDEVR API.
static DynamicPointer< VulkanDevice > & DefaultVulkanDevice()
Returns a reference to the global default Vulkan device.
virtual const ConstPointer< GraphicsDevice > & device() const final override
Returns the graphics device (const).
static const StringView formats[ShaderType::e_shader_type_size]
File name suffixes for each shader type.
@ e_shader_type_size
The number of shader types (sentinel).
The primary namespace for the NDEVR SDK.
uint32_t uint04
-Defines an alias representing a 4 byte, unsigned integer -Can represent exact integer values 0 throu...
@ file
The source file path associated with this object.
constexpr t_to cast(const Angle< t_from > &value)
Casts an Angle from one backing type to another.
static ApplicationOption< UUID > default_render_engine
The UUID of the default rendering engine to use.