| 1074 | } |
| 1075 | |
| 1076 | void GPUContextVulkan::BindUA(int32 slot, GPUResourceView* view) |
| 1077 | { |
| 1078 | #if !BUILD_RELEASE |
| 1079 | ASSERT(slot >= 0 && slot < GPU_MAX_UA_BINDED); |
| 1080 | if (view && ((DescriptorOwnerResourceVulkan*)view->GetNativePtr())->HasUAV() == false) |
| 1081 | LogInvalidResourceUsage(slot, view, InvalidBindPoint::UAV); |
| 1082 | #endif |
| 1083 | const auto handle = view ? (DescriptorOwnerResourceVulkan*)view->GetNativePtr() : nullptr; |
| 1084 | if (_uaHandles[slot] != handle) |
| 1085 | { |
| 1086 | _uaHandles[slot] = handle; |
| 1087 | if (view) |
| 1088 | *view->LastRenderTime = _lastRenderTime; |
| 1089 | } |
| 1090 | } |
| 1091 | |
| 1092 | void GPUContextVulkan::BindVB(const Span<GPUBuffer*>& vertexBuffers, const uint32* vertexBuffersOffsets, GPUVertexLayout* vertexLayout) |
| 1093 | { |
no test coverage detected