MCPcopy Create free account
hub / github.com/InoriRus/Kyty / Init

Method Init

source/emulator/src/Graphics/GraphicsRender.cpp:1268–1282  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1266}
1267
1268void 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
1284void GdsBuffer::Clear(GraphicContext* ctx, uint64_t dw_offset, uint32_t dw_num, uint32_t clear_value)
1285{

Callers

nothing calls this directly

Calls 3

VulkanCreateBufferFunction · 0.85
create_layoutFunction · 0.85
GetGraphicCtxMethod · 0.45

Tested by

no test coverage detected