This commit is contained in:
parent
6065ab1636
commit
a599e65bae
3 changed files with 12 additions and 13 deletions
|
|
@ -232,7 +232,7 @@ void Instance::initialize_instance()
|
||||||
|
|
||||||
void Instance::load_library()
|
void Instance::load_library()
|
||||||
{
|
{
|
||||||
constexpr auto runtime_loader_flags = RTLD_NOW | RTLD_DEEPBIND | RTLD_LOCAL | RTLD_NODELETE;
|
constexpr auto runtime_loader_flags = RTLD_NOW | RTLD_LOCAL | RTLD_NODELETE;
|
||||||
library = dlopen("libvulkan.so.1", runtime_loader_flags);
|
library = dlopen("libvulkan.so.1", runtime_loader_flags);
|
||||||
if (!library)
|
if (!library)
|
||||||
{
|
{
|
||||||
|
|
|
||||||
|
|
@ -10,15 +10,16 @@ Pass::Pass(
|
||||||
const lt::assets::ShaderAsset &vertex_shader,
|
const lt::assets::ShaderAsset &vertex_shader,
|
||||||
const lt::assets::ShaderAsset &fragment_shader
|
const lt::assets::ShaderAsset &fragment_shader
|
||||||
)
|
)
|
||||||
: m_device(static_cast<Device *>(device)), m_layout(m_device->create_pipeline_layout(
|
: m_device(static_cast<Device *>(device))
|
||||||
VkPipelineLayoutCreateInfo {
|
, m_layout(m_device->create_pipeline_layout(
|
||||||
.sType = VK_STRUCTURE_TYPE_PIPELINE_LAYOUT_CREATE_INFO,
|
VkPipelineLayoutCreateInfo {
|
||||||
.setLayoutCount = 0u,
|
.sType = VK_STRUCTURE_TYPE_PIPELINE_LAYOUT_CREATE_INFO,
|
||||||
.pSetLayouts = nullptr,
|
.setLayoutCount = 0u,
|
||||||
.pushConstantRangeCount = 0u,
|
.pSetLayouts = nullptr,
|
||||||
.pPushConstantRanges = nullptr,
|
.pushConstantRangeCount = 0u,
|
||||||
}
|
.pPushConstantRanges = nullptr,
|
||||||
))
|
}
|
||||||
|
))
|
||||||
{
|
{
|
||||||
auto *vertex_module = create_module(
|
auto *vertex_module = create_module(
|
||||||
vertex_shader.unpack(lt::assets::ShaderAsset::BlobTag::code)
|
vertex_shader.unpack(lt::assets::ShaderAsset::BlobTag::code)
|
||||||
|
|
@ -111,7 +112,6 @@ Pass::Pass(
|
||||||
.blendConstants = { 0.0f, 0.0, 0.0, 0.0 },
|
.blendConstants = { 0.0f, 0.0, 0.0, 0.0 },
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
auto attachment_description = VkAttachmentDescription {
|
auto attachment_description = VkAttachmentDescription {
|
||||||
.format = static_cast<Swapchain *>(swapchain)->get_format(),
|
.format = static_cast<Swapchain *>(swapchain)->get_format(),
|
||||||
|
|
|
||||||
|
|
@ -46,8 +46,7 @@ System::System(CreateInfo info)
|
||||||
) };
|
) };
|
||||||
}
|
}
|
||||||
|
|
||||||
System::~System()
|
System::~System() = default;
|
||||||
= default;
|
|
||||||
|
|
||||||
void System::on_register()
|
void System::on_register()
|
||||||
{
|
{
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue