mirror of
https://github.com/doitsujin/dxvk.git
synced 2024-12-02 01:24:11 +01:00
[dxvk] Renamed DxvkBufferSlice methods for convenience
This commit is contained in:
parent
4502816bb6
commit
c0a963ae5b
@ -399,14 +399,14 @@ namespace dxvk {
|
||||
const auto bufferSlice = bufferResource->GetCurrentBufferSlice();
|
||||
|
||||
VkDeviceSize offset = 0;
|
||||
VkDeviceSize size = bufferSlice.bufferRange();
|
||||
VkDeviceSize size = bufferSlice.length();
|
||||
|
||||
if (pDstBox != nullptr) {
|
||||
offset = pDstBox->left;
|
||||
size = pDstBox->right - pDstBox->left;
|
||||
}
|
||||
|
||||
if (offset + size > bufferSlice.bufferRange()) {
|
||||
if (offset + size > bufferSlice.length()) {
|
||||
Logger::err("D3D11: UpdateSubresource: Buffer size out of bounds");
|
||||
return;
|
||||
}
|
||||
|
@ -83,7 +83,7 @@ namespace dxvk {
|
||||
|
||||
DxvkDescriptorInfo descriptor;
|
||||
|
||||
if (buffer.bufferHandle() != VK_NULL_HANDLE)
|
||||
if (buffer.handle() != VK_NULL_HANDLE)
|
||||
descriptor.buffer = buffer.descriptorInfo();
|
||||
|
||||
rc->bindShaderResource(slot, resource, descriptor);
|
||||
|
Loading…
Reference in New Issue
Block a user