21 lines
505 B
C++
21 lines
505 B
C++
// =============================================
|
|
// Aster: pipeline.cpp
|
|
// Copyright (c) 2020-2024 Anish Bhobe
|
|
// =============================================
|
|
|
|
#include "pipeline.h"
|
|
|
|
#include "device.h"
|
|
|
|
Pipeline::Pipeline(const Device *device, vk::PipelineLayout layout, vk::Pipeline pipeline)
|
|
: m_Device(device)
|
|
, m_Layout(layout)
|
|
, m_Pipeline(pipeline)
|
|
{
|
|
}
|
|
|
|
Pipeline::~Pipeline()
|
|
{
|
|
m_Device->m_Device.destroy(m_Pipeline, nullptr);
|
|
m_Device->m_Device.destroy(m_Layout, nullptr);
|
|
} |