mirror of
https://git.ryujinx.app/projects/Kenji-NX.git
synced 2026-09-24 18:30:06 +02:00
misc: chore: Fix object creation
This commit is contained in:
@@ -145,7 +145,7 @@ namespace Ryujinx.Graphics.Vulkan
|
||||
stages |= PipelineStageFlags.DrawIndirectBit;
|
||||
}
|
||||
|
||||
MemoryBarrier barrier = new MemoryBarrier()
|
||||
MemoryBarrier barrier = new()
|
||||
{
|
||||
SType = StructureType.MemoryBarrier,
|
||||
SrcAccessMask = access,
|
||||
@@ -175,7 +175,7 @@ namespace Ryujinx.Graphics.Vulkan
|
||||
{
|
||||
// Feedback loop barrier.
|
||||
|
||||
MemoryBarrier barrier = new MemoryBarrier()
|
||||
MemoryBarrier barrier = new()
|
||||
{
|
||||
SType = StructureType.MemoryBarrier,
|
||||
SrcAccessMask = AccessFlags.ShaderWriteBit,
|
||||
|
||||
@@ -207,14 +207,14 @@ namespace Ryujinx.Graphics.Vulkan
|
||||
|
||||
fixed (SparseMemoryBind* pMemoryBinds = memoryBinds)
|
||||
{
|
||||
SparseBufferMemoryBindInfo bufferBind = new SparseBufferMemoryBindInfo()
|
||||
SparseBufferMemoryBindInfo bufferBind = new()
|
||||
{
|
||||
Buffer = buffer,
|
||||
BindCount = (uint)memoryBinds.Length,
|
||||
PBinds = pMemoryBinds
|
||||
};
|
||||
|
||||
BindSparseInfo bindSparseInfo = new BindSparseInfo()
|
||||
BindSparseInfo bindSparseInfo = new()
|
||||
{
|
||||
SType = StructureType.BindSparseInfo,
|
||||
BufferBindCount = 1,
|
||||
|
||||
@@ -212,7 +212,7 @@ namespace Ryujinx.Graphics.Vulkan
|
||||
|
||||
bool supportsPushDescriptors = _physicalDevice.IsDeviceExtensionPresent(KhrPushDescriptor.ExtensionName);
|
||||
|
||||
PhysicalDevicePushDescriptorPropertiesKHR propertiesPushDescriptor = new PhysicalDevicePushDescriptorPropertiesKHR()
|
||||
PhysicalDevicePushDescriptorPropertiesKHR propertiesPushDescriptor = new()
|
||||
{
|
||||
SType = StructureType.PhysicalDevicePushDescriptorPropertiesKhr
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user