mirror of
https://github.com/EduApps-CDG/OpenDX
synced 2024-12-30 09:45:37 +01:00
[dxvk] Pass device to sampler constructor
This commit is contained in:
parent
a968f29754
commit
7b81db2c75
@ -151,7 +151,7 @@ namespace dxvk {
|
||||
|
||||
Rc<DxvkSampler> DxvkDevice::createSampler(
|
||||
const DxvkSamplerCreateInfo& createInfo) {
|
||||
return new DxvkSampler(m_vkd, createInfo);
|
||||
return new DxvkSampler(this, createInfo);
|
||||
}
|
||||
|
||||
|
||||
|
@ -1,11 +1,12 @@
|
||||
#include "dxvk_sampler.h"
|
||||
#include "dxvk_device.h"
|
||||
|
||||
namespace dxvk {
|
||||
|
||||
DxvkSampler::DxvkSampler(
|
||||
const Rc<vk::DeviceFn>& vkd,
|
||||
DxvkDevice* device,
|
||||
const DxvkSamplerCreateInfo& info)
|
||||
: m_vkd(vkd) {
|
||||
: m_vkd(device->vkd()) {
|
||||
VkSamplerCreateInfo samplerInfo;
|
||||
samplerInfo.sType = VK_STRUCTURE_TYPE_SAMPLER_CREATE_INFO;
|
||||
samplerInfo.pNext = nullptr;
|
||||
|
@ -4,6 +4,8 @@
|
||||
|
||||
namespace dxvk {
|
||||
|
||||
class DxvkDevice;
|
||||
|
||||
/**
|
||||
* \brief Sampler properties
|
||||
*/
|
||||
@ -51,7 +53,7 @@ namespace dxvk {
|
||||
public:
|
||||
|
||||
DxvkSampler(
|
||||
const Rc<vk::DeviceFn>& vkd,
|
||||
DxvkDevice* device,
|
||||
const DxvkSamplerCreateInfo& info);
|
||||
~DxvkSampler();
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user