Searched refs:upload_res (Results 1 – 1 of 1) sorted by relevance
306 auto upload_res = create_buffer(size, D3D12_HEAP_TYPE_UPLOAD); in create_upload_buffer_with_data() local310 if (FAILED(upload_res->Map(0, &res_range, (void **)&ptr))) in create_upload_buffer_with_data()314 upload_res->Unmap(0, &res_range); in create_upload_buffer_with_data()315 return upload_res; in create_upload_buffer_with_data()323 auto upload_res = create_upload_buffer_with_data(data, data_size); in create_sized_buffer_with_data() local327 cmdlist->CopyBufferRegion(res.Get(), 0, upload_res.Get(), 0, data_size); in create_sized_buffer_with_data()