mirror of
https://github.com/doitsujin/dxvk.git
synced 2025-01-31 14:52:11 +01:00
[d3d9] Generalize D3D9ConstantBuffer constructor
This commit is contained in:
parent
00eaec1619
commit
a2ef99b95c
@ -13,9 +13,21 @@ namespace dxvk {
|
|||||||
DxsoProgramType ShaderStage,
|
DxsoProgramType ShaderStage,
|
||||||
DxsoConstantBuffers BufferType,
|
DxsoConstantBuffers BufferType,
|
||||||
VkDeviceSize Size)
|
VkDeviceSize Size)
|
||||||
|
: D3D9ConstantBuffer(pDevice, GetShaderStage(ShaderStage),
|
||||||
|
computeResourceSlotId(ShaderStage, DxsoBindingType::ConstantBuffer, BufferType),
|
||||||
|
Size) {
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
D3D9ConstantBuffer::D3D9ConstantBuffer(
|
||||||
|
D3D9DeviceEx* pDevice,
|
||||||
|
VkShaderStageFlags Stages,
|
||||||
|
uint32_t ResourceSlot,
|
||||||
|
VkDeviceSize Size)
|
||||||
: m_device (pDevice)
|
: m_device (pDevice)
|
||||||
, m_binding (computeResourceSlotId(ShaderStage, DxsoBindingType::ConstantBuffer, BufferType))
|
, m_binding (ResourceSlot)
|
||||||
, m_stages (GetShaderStage(ShaderStage))
|
, m_stages (Stages)
|
||||||
, m_size (Size)
|
, m_size (Size)
|
||||||
, m_align (getAlignment(pDevice->GetDXVKDevice())) {
|
, m_align (getAlignment(pDevice->GetDXVKDevice())) {
|
||||||
|
|
||||||
|
@ -27,6 +27,12 @@ namespace dxvk {
|
|||||||
DxsoConstantBuffers BufferType,
|
DxsoConstantBuffers BufferType,
|
||||||
VkDeviceSize Size);
|
VkDeviceSize Size);
|
||||||
|
|
||||||
|
D3D9ConstantBuffer(
|
||||||
|
D3D9DeviceEx* pDevice,
|
||||||
|
VkShaderStageFlags Stages,
|
||||||
|
uint32_t ResourceSlot,
|
||||||
|
VkDeviceSize Size);
|
||||||
|
|
||||||
~D3D9ConstantBuffer();
|
~D3D9ConstantBuffer();
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
x
Reference in New Issue
Block a user