| 1266 | } |
| 1267 | |
| 1268 | void GdsBuffer::Init(GraphicContext* ctx) |
| 1269 | { |
| 1270 | if (m_buffer == nullptr) |
| 1271 | { |
| 1272 | m_buffer = new VulkanBuffer; |
| 1273 | |
| 1274 | m_buffer->usage = VK_BUFFER_USAGE_STORAGE_BUFFER_BIT; |
| 1275 | m_buffer->memory.property = static_cast<uint32_t>(VK_MEMORY_PROPERTY_HOST_VISIBLE_BIT) | VK_MEMORY_PROPERTY_HOST_COHERENT_BIT | |
| 1276 | VK_MEMORY_PROPERTY_HOST_CACHED_BIT; |
| 1277 | m_buffer->buffer = nullptr; |
| 1278 | |
| 1279 | VulkanCreateBuffer(ctx, DW_SIZE * 4, m_buffer); |
| 1280 | EXIT_NOT_IMPLEMENTED(m_buffer->buffer == nullptr); |
| 1281 | } |
| 1282 | } |
| 1283 | |
| 1284 | void GdsBuffer::Clear(GraphicContext* ctx, uint64_t dw_offset, uint32_t dw_num, uint32_t clear_value) |
| 1285 | { |
nothing calls this directly
no test coverage detected