1
0
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:
Philip Rebohle 2017-12-14 19:11:13 +01:00
parent 4502816bb6
commit c0a963ae5b
2 changed files with 3 additions and 3 deletions

View File

@ -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;
}

View File

@ -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);