1
0
mirror of https://github.com/EduApps-CDG/OpenDX synced 2024-12-30 09:45:37 +01:00
OpenDX/src/dxvk/dxvk_compute.h

57 lines
1.2 KiB
C
Raw Normal View History

#pragma once
#include "dxvk_pipeline.h"
2017-10-14 23:52:47 +02:00
#include "dxvk_resource.h"
#include "dxvk_shader.h"
namespace dxvk {
/**
* \brief Compute pipeline
*
2017-10-14 13:45:00 +02:00
* Stores a compute pipeline object and the corresponding
* pipeline layout. Unlike graphics pipelines, compute
* pipelines do not need to be recompiled against any sort
* of pipeline state.
*/
2017-10-14 23:52:47 +02:00
class DxvkComputePipeline : public DxvkResource {
public:
2017-10-14 23:52:47 +02:00
DxvkComputePipeline(
const Rc<vk::DeviceFn>& vkd,
const Rc<DxvkBindingLayout>& layout,
const Rc<DxvkShader>& cs);
~DxvkComputePipeline();
2017-10-14 23:52:47 +02:00
/**
* \brief Pipeline layout
2017-10-14 23:52:47 +02:00
*
* Stores the pipeline layout and the descriptor set
* layout, as well as information on the resource
* slots used by the pipeline.
* \returns Pipeline layout
2017-10-14 23:52:47 +02:00
*/
Rc<DxvkBindingLayout> layout() const {
return m_layout;
}
/**
* \brief Pipeline handle
* \returns Pipeline handle
*/
2017-10-15 13:02:59 +02:00
VkPipeline getPipelineHandle() const {
return m_pipeline;
}
private:
2017-10-14 23:52:47 +02:00
Rc<vk::DeviceFn> m_vkd;
Rc<DxvkBindingLayout> m_layout;
Rc<DxvkShader> m_cs;
2017-10-14 23:52:47 +02:00
VkPipeline m_pipeline = VK_NULL_HANDLE;
};
}