mirror of
https://github.com/ProjectLeonida/mandy.git
synced 2026-12-06 16:38:38 +00:00
d3d12: the title texture refresh reads and detiles the named textures on several threads, and submits their uploads in order (RT-TITLE-TEXTURE-WRITE-TRACKED)
Run 58: with the watch in effect a pass still read, hashed and detiled every named texture on the title's submitting thread, one after another: about 1,250 textures and 95 MiB a pass in the world load, 198 ms a pass, up to 795 ms (read from write-combined title memory, a full hash, the detile into the upload slot). The upload is split into three steps (TitleImageUpload::reserve, fill, commit). The pass reserves a slot for each named texture on its own thread, a small pool of threads of ours (TitleReadPool, a quarter of the cores, at most seven, plus the submitting thread) copies, hashes and detiles them in batches of 16 or 64 MiB, and the submitting thread then records and submits the transfers one by one in key order, still before the submission whose draws sample them. The reads of different textures are independent; only the submissions carry the ordering, and they stay where they were. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@ -40,16 +40,20 @@ public:
|
||||
ready_ = VK_NULL_HANDLE;
|
||||
}
|
||||
|
||||
struct Slot;
|
||||
|
||||
// One upload in three steps, so the detile of several textures can run on several threads while the transfers
|
||||
// are still recorded and submitted one by one, in order (Device::refresh_title_textures):
|
||||
// reserve (serial): the copy regions, a free slot and its buffer;
|
||||
// fill (any thread, one slot each): the detile into the slot's mapped buffer;
|
||||
// commit (serial): the transfer recorded and submitted; or unreserve when the bytes turned out unchanged.
|
||||
template<class Device>
|
||||
bool write(Device& d, leonida::ResourceId id, const leonida::ResourceBinding& image,
|
||||
const xg_xs::Texture& layout, const std::uint8_t* tiled, std::vector<std::uint64_t>& columns,
|
||||
bool inspect, bool& nonzero) {
|
||||
Slot* reserve(Device& d, const leonida::ResourceBinding& image, const xg_xs::Texture& layout) {
|
||||
const auto block = leonida::copy_block_format(image, VK_IMAGE_ASPECT_COLOR_BIT);
|
||||
const auto mips = layout.layout.mips;
|
||||
const auto layers = layout.array;
|
||||
if (!block.bytes || block.bytes != layout.format.bytes || !mips || mips > image.mip_levels ||
|
||||
!layers || layers > image.array_layers) return false;
|
||||
|
||||
!layers || layers > image.array_layers) return nullptr;
|
||||
regions_.clear();
|
||||
VkDeviceSize bytes = 0;
|
||||
for (unsigned layer = 0; layer < layers; ++layer) {
|
||||
@ -61,21 +65,30 @@ public:
|
||||
image.volume ? std::max(1u, image.depth >> level) : 1u};
|
||||
if (mip.width_elements != (copy.imageExtent.width + block.block - 1) / block.block ||
|
||||
mip.height_elements != (copy.imageExtent.height + block.block - 1) / block.block ||
|
||||
(image.volume && mip.depth != copy.imageExtent.depth)) return false;
|
||||
(image.volume && mip.depth != copy.imageExtent.depth)) return nullptr;
|
||||
// Vulkan requires offsets aligned to four bytes and to the texel block size.
|
||||
const auto align = 4u * block.bytes;
|
||||
copy.bufferOffset = bytes + (align - bytes % align) % align;
|
||||
const VkDeviceSize row = VkDeviceSize(mip.width_elements) * block.bytes;
|
||||
const VkDeviceSize slice = row * mip.height_elements;
|
||||
if (slice > UINT32_MAX || (UINT64_MAX - copy.bufferOffset) / copy.imageExtent.depth < slice) return false;
|
||||
if (slice > UINT32_MAX || (UINT64_MAX - copy.bufferOffset) / copy.imageExtent.depth < slice)
|
||||
return nullptr;
|
||||
bytes = copy.bufferOffset + slice * copy.imageExtent.depth;
|
||||
regions_.push_back(copy);
|
||||
}
|
||||
}
|
||||
Slot* free = take_slot(d);
|
||||
if (!free || !prepare(d, *free, bytes)) return false;
|
||||
Slot& slot = *free;
|
||||
for (const auto& copy : regions_) {
|
||||
Slot* slot = take_slot(d);
|
||||
if (!slot || !prepare(d, *slot, bytes)) return nullptr;
|
||||
slot->regions = regions_;
|
||||
slot->reserved = true;
|
||||
return slot;
|
||||
}
|
||||
|
||||
// Thread-safe for distinct slots: reads only `tiled` and writes only the slot's buffer and `columns`.
|
||||
static void fill(Slot& slot, const leonida::ResourceBinding& image, const xg_xs::Texture& layout,
|
||||
const std::uint8_t* tiled, std::vector<std::uint64_t>& columns, bool inspect, bool& nonzero) {
|
||||
const auto block = leonida::copy_block_format(image, VK_IMAGE_ASPECT_COLOR_BIT);
|
||||
for (const auto& copy : slot.regions) {
|
||||
const auto level = copy.imageSubresource.mipLevel;
|
||||
const auto& mip = layout.layout.plane[0].mips[level];
|
||||
const auto row = mip.width_elements * block.bytes, slice = row * mip.height_elements;
|
||||
@ -85,8 +98,15 @@ public:
|
||||
nonzero = std::any_of(dst, dst + VkDeviceSize(slice) * copy.imageExtent.depth,
|
||||
[](std::uint8_t c) { return c != 0; });
|
||||
}
|
||||
}
|
||||
|
||||
const VkImageSubresourceRange range{VK_IMAGE_ASPECT_COLOR_BIT, 0, mips, 0, layers};
|
||||
static void unreserve(Slot& slot) { slot.reserved = false; }
|
||||
|
||||
template<class Device>
|
||||
bool commit(Device& d, leonida::ResourceId id, const leonida::ResourceBinding& image,
|
||||
const xg_xs::Texture& layout, Slot& slot) {
|
||||
slot.reserved = false;
|
||||
const VkImageSubresourceRange range{VK_IMAGE_ASPECT_COLOR_BIT, 0, layout.layout.mips, 0, layout.array};
|
||||
const auto result = d.context->write_staged_title_image(id, range, [&](const leonida::ReplayFunctions& replay,
|
||||
const leonida::LayoutPieces& pieces,
|
||||
const auto& waits) {
|
||||
@ -103,7 +123,7 @@ public:
|
||||
VK_IMAGE_LAYOUT_TRANSFER_DST_OPTIMAL, VK_ACCESS_MEMORY_WRITE_BIT, VK_PIPELINE_STAGE_ALL_COMMANDS_BIT,
|
||||
VK_ACCESS_TRANSFER_WRITE_BIT, VK_PIPELINE_STAGE_TRANSFER_BIT);
|
||||
vk.vkCmdCopyBufferToImage(slot.command, slot.buffer, image.image, VK_IMAGE_LAYOUT_TRANSFER_DST_OPTIMAL,
|
||||
static_cast<std::uint32_t>(regions_.size()), regions_.data());
|
||||
static_cast<std::uint32_t>(slot.regions.size()), slot.regions.data());
|
||||
for (const auto& piece : pieces)
|
||||
leonida::detail::image_barrier(replay, slot.command, image, piece.range, VK_IMAGE_LAYOUT_TRANSFER_DST_OPTIMAL,
|
||||
piece.layout == VK_IMAGE_LAYOUT_UNDEFINED ? VK_IMAGE_LAYOUT_GENERAL : piece.layout,
|
||||
@ -115,7 +135,16 @@ public:
|
||||
return result == VK_SUCCESS;
|
||||
}
|
||||
|
||||
private:
|
||||
template<class Device>
|
||||
bool write(Device& d, leonida::ResourceId id, const leonida::ResourceBinding& image,
|
||||
const xg_xs::Texture& layout, const std::uint8_t* tiled, std::vector<std::uint64_t>& columns,
|
||||
bool inspect, bool& nonzero) {
|
||||
Slot* slot = reserve(d, image, layout);
|
||||
if (!slot) return false;
|
||||
fill(*slot, image, layout, tiled, columns, inspect, nonzero);
|
||||
return commit(d, id, image, layout, *slot);
|
||||
}
|
||||
|
||||
static constexpr std::size_t kMaxSlots = 64;
|
||||
struct Slot {
|
||||
VkBuffer buffer{};
|
||||
@ -124,8 +153,12 @@ private:
|
||||
VkDeviceSize capacity = 0;
|
||||
VkCommandBuffer command{};
|
||||
std::uint64_t value = 0; // the ready_ value its last transfer signals; 0: none submitted
|
||||
bool reserved = false; // between reserve() and commit()/unreserve()
|
||||
std::vector<VkBufferImageCopy> regions;
|
||||
};
|
||||
|
||||
private:
|
||||
|
||||
// Waits (outside every lock but the registry's) until the slot's last transfer has completed.
|
||||
template<class Device>
|
||||
bool wait_slot(Device& d, Slot& slot) {
|
||||
@ -162,6 +195,7 @@ private:
|
||||
reached = 0;
|
||||
Slot* oldest = nullptr;
|
||||
for (auto& slot : slots_) {
|
||||
if (slot->reserved) continue;
|
||||
if (!slot->value || slot->value <= reached) {
|
||||
slot->value = 0;
|
||||
return slot.get();
|
||||
@ -169,7 +203,7 @@ private:
|
||||
if (!oldest || slot->value < oldest->value) oldest = slot.get();
|
||||
}
|
||||
if (slots_.size() < kMaxSlots) return slots_.emplace_back(std::make_unique<Slot>()).get();
|
||||
return wait_slot(d, *oldest) ? oldest : nullptr;
|
||||
return oldest && wait_slot(d, *oldest) ? oldest : nullptr;
|
||||
}
|
||||
|
||||
template<class Device>
|
||||
|
||||
@ -8325,6 +8325,8 @@ public:
|
||||
void* title_address() const { return title_address_; } // place_at_title_address, or null
|
||||
bool replay_seen() const { return replay_seen_.load(std::memory_order_relaxed); }
|
||||
bool staged_title() const { return staged_title_; }
|
||||
// The image as the title upload writes it (TitleImageUpload::reserve, fill and commit).
|
||||
const leonida::ResourceBinding& title_binding() const { return binding_; }
|
||||
bool upload_staged_title(const rt::xg_xs::Texture& layout, const std::uint8_t* tiled,
|
||||
std::vector<std::uint64_t>& columns, bool inspect, bool& nonzero) {
|
||||
std::lock_guard lock(device_.title_upload_mutex);
|
||||
@ -15539,7 +15541,74 @@ public:
|
||||
}
|
||||
title_named_.clear();
|
||||
watch.collect([&](std::uint64_t key) { title_named_.push_back(key); });
|
||||
// Not filled: with no backing yet or after a failed upload it is looked at again next pass. Memory not
|
||||
// readable yet waits for its mapping (xmem's change names it), except a texture the title mapped, whose
|
||||
// pages may be committed under the pointer Map gave without xmem (the probe answers each pass). Its tiles
|
||||
// are armed again then: pages committed since the last arming have no guard yet.
|
||||
const auto not_filled = [&](TitleTexture& t) {
|
||||
if ((t.stale || !t.hashed) && t.resource && (!t.memory.pending() || t.mapped))
|
||||
watch.note_changed(t.cpu, t.cpu + t.layout.layout.size);
|
||||
};
|
||||
// The textures named are read and detiled by several threads (TitleReadPool) in batches, and their transfers
|
||||
// recorded and submitted here, one by one in key order, before this submission: the reads of different
|
||||
// textures are independent, the submissions are what the ordering needs. Everything under the registry lock,
|
||||
// which the pass holds throughout.
|
||||
std::uint64_t filled = 0;
|
||||
title_jobs_.clear();
|
||||
std::uint64_t batch_bytes = 0;
|
||||
const auto fill_start = clock::now();
|
||||
const auto run_batch = [&] {
|
||||
if (title_jobs_.empty()) return;
|
||||
title_read_pool().run(title_jobs_.size(), [this](std::size_t i) { read_title_job(title_jobs_[i]); });
|
||||
for (TitleJob& job : title_jobs_) {
|
||||
TitleTexture& t = *job.entry;
|
||||
if (!job.copied) { // the section changed after VirtualQuery: keep the last upload and retry
|
||||
rt::d3d12::TitleImageUpload::unreserve(*job.slot);
|
||||
t.memory.defer();
|
||||
t.stale = true;
|
||||
not_filled(t);
|
||||
continue;
|
||||
}
|
||||
if (job.unchanged) {
|
||||
rt::d3d12::TitleImageUpload::unreserve(*job.slot);
|
||||
++stats.unchanged;
|
||||
t.stale = false;
|
||||
continue;
|
||||
}
|
||||
bool ok = false;
|
||||
{
|
||||
const auto start = clock::now();
|
||||
std::lock_guard upload(state_.title_upload_mutex);
|
||||
ok = state_.title_upload.commit(state_, job.resource->id(), job.resource->title_binding(),
|
||||
t.layout, *job.slot);
|
||||
stats.staged_ns +=
|
||||
std::chrono::duration_cast<std::chrono::nanoseconds>(clock::now() - start).count();
|
||||
}
|
||||
if (!ok) {
|
||||
log_once("staged title texture upload failed, format", int(job.resource->format()));
|
||||
++stats.fill_failures;
|
||||
t.stale = true;
|
||||
not_filled(t);
|
||||
continue;
|
||||
}
|
||||
++stats.staged_fills;
|
||||
if (job.trace)
|
||||
std::fprintf(stderr, "[rt] ds-pool-fill cpu=%llx size=%llu staged=1 nonzero=%d\n",
|
||||
static_cast<unsigned long long>(t.cpu), static_cast<unsigned long long>(job.span),
|
||||
int(job.nonzero));
|
||||
if (t.owned && !t.fills) job.resource->publish_streamed_texture();
|
||||
t.hash = job.hash;
|
||||
t.hashed = true;
|
||||
t.stale = false;
|
||||
++t.fills;
|
||||
++stats.fills;
|
||||
++stats.changed;
|
||||
stats.fill_bytes += job.span;
|
||||
filled += job.span;
|
||||
}
|
||||
title_jobs_.clear();
|
||||
batch_bytes = 0;
|
||||
};
|
||||
for (const std::uint64_t key : title_named_) {
|
||||
const auto it = state_.title_textures.find(key);
|
||||
if (it == state_.title_textures.end() || !it->second->resource) continue;
|
||||
@ -15553,18 +15622,35 @@ public:
|
||||
continue;
|
||||
}
|
||||
++stats.checked;
|
||||
const auto fill_start = clock::now();
|
||||
const std::uint64_t uploaded = fill_title_texture(t);
|
||||
stats.fill_ns += std::chrono::duration_cast<std::chrono::nanoseconds>(clock::now() - fill_start).count();
|
||||
if (uploaded) ++stats.changed;
|
||||
filled += uploaded;
|
||||
// Not filled: with no backing yet or after a failed upload it is looked at again next pass. Memory not
|
||||
// readable yet waits for its mapping (xmem's change names it), except a texture the title mapped, whose
|
||||
// pages may be committed under the pointer Map gave without xmem (the probe answers each pass). Its tiles
|
||||
// are armed again then: pages committed since the last arming have no guard yet.
|
||||
if (!uploaded && (t.stale || !t.hashed) && t.resource && (!t.memory.pending() || t.mapped))
|
||||
watch.note_changed(t.cpu, t.cpu + t.layout.layout.size);
|
||||
if (!title_texture_readable(t) || !back_title_texture(t)) {
|
||||
not_filled(t);
|
||||
continue;
|
||||
}
|
||||
rt::d3d12::TitleImageUpload::Slot* slot = nullptr;
|
||||
{
|
||||
std::lock_guard upload(state_.title_upload_mutex);
|
||||
slot = state_.title_upload.reserve(state_, t.resource->title_binding(), t.layout);
|
||||
}
|
||||
if (!slot) {
|
||||
log_once("staged title texture upload failed, format", int(t.resource->format()));
|
||||
++stats.fill_failures;
|
||||
t.stale = true;
|
||||
not_filled(t);
|
||||
continue;
|
||||
}
|
||||
TitleJob& job = title_jobs_.emplace_back();
|
||||
job.entry = entry;
|
||||
job.resource = t.resource;
|
||||
job.slot = slot;
|
||||
job.span = t.layout.layout.size;
|
||||
job.previous = t.hashed && t.fills ? std::optional<std::uint64_t>(t.hash) : std::nullopt;
|
||||
job.write_combined = title_memory_write_combined(t.cpu);
|
||||
job.trace = leonida::dstorage::trace_enabled() && leonida::title_gpu_views::other_view(t.cpu);
|
||||
batch_bytes += job.span;
|
||||
if (title_jobs_.size() >= kTitleBatch || batch_bytes >= kTitleBatchBytes) run_batch();
|
||||
}
|
||||
run_batch();
|
||||
stats.fill_ns += std::chrono::duration_cast<std::chrono::nanoseconds>(clock::now() - fill_start).count();
|
||||
stats.filled_bytes += filled;
|
||||
stats.max_pass_bytes = std::max(stats.max_pass_bytes, filled);
|
||||
std::vector<Resource*> release;
|
||||
@ -15636,6 +15722,24 @@ private:
|
||||
TitleTextureStats title_stats_; // under title_texture_mutex
|
||||
bool title_pass_ = false; // in refresh_title_textures, likewise
|
||||
std::vector<std::uint64_t> title_named_; // refresh scratch, under title_texture_mutex
|
||||
// One texture of a refresh batch: what the serial part found (the slot reserved for it, the last fill's hash) and
|
||||
// what a TitleReadPool thread read (read_title_job).
|
||||
struct TitleJob {
|
||||
std::shared_ptr<TitleTexture> entry;
|
||||
Resource* resource = nullptr; // the texture's, held by the registry for the pass
|
||||
rt::d3d12::TitleImageUpload::Slot* slot = nullptr;
|
||||
std::uint64_t span = 0, hash = 0;
|
||||
std::optional<std::uint64_t> previous;
|
||||
bool write_combined = false, trace = false, copied = false, unchanged = false, nonzero = false;
|
||||
std::vector<std::uint8_t> tiled;
|
||||
std::vector<std::uint64_t> columns;
|
||||
};
|
||||
static constexpr std::size_t kTitleBatch = 16; // jobs read at once (and upload slots reserved)
|
||||
static constexpr std::uint64_t kTitleBatchBytes = 64ull << 20; // or this many bytes of them
|
||||
std::deque<TitleJob> title_jobs_; // refresh scratch, under title_texture_mutex
|
||||
class TitleReadPool;
|
||||
std::unique_ptr<TitleReadPool> title_read_pool_;
|
||||
std::once_flag title_read_pool_once_;
|
||||
leonida::TitleTextureWatch<TitleTextureCells>::Stats title_watch_logged_; // as of the last log line, likewise
|
||||
std::atomic<std::uint64_t> refreshed_present_{~std::uint64_t(0)}; // LEONIDA_REFRESH_PER_FRAME: present of the last full refresh
|
||||
|
||||
@ -16154,20 +16258,7 @@ private:
|
||||
t.stale = true;
|
||||
return 0;
|
||||
}
|
||||
if (!t.owned && t.unbound_bytes) {
|
||||
if (!t.resource->image()) {
|
||||
t.stale = true;
|
||||
return 0;
|
||||
}
|
||||
t.set_resource(t.resource);
|
||||
}
|
||||
if (t.owned && t.unbound_bytes) {
|
||||
if (!t.resource->back_streamed_texture()) {
|
||||
t.stale = true;
|
||||
return 0;
|
||||
}
|
||||
t.set_resource(t.resource);
|
||||
}
|
||||
if (!back_title_texture(t)) return 0;
|
||||
// Every byte: a texture is read only when something says it changed, so this is its one read; bytes equal to
|
||||
// the last fill's (a write to another texture in the same 64 KiB tile, or the same texels again) are not
|
||||
// uploaded again.
|
||||
@ -16204,6 +16295,103 @@ private:
|
||||
return span;
|
||||
}
|
||||
|
||||
// A texture whose image has no memory yet gets it before its first fill. False (and stale) when it cannot.
|
||||
bool back_title_texture(TitleTexture& t) {
|
||||
if (!t.unbound_bytes) return true;
|
||||
if (t.owned ? !t.resource->back_streamed_texture() : !t.resource->image()) {
|
||||
t.stale = true;
|
||||
return false;
|
||||
}
|
||||
t.set_resource(t.resource);
|
||||
return true;
|
||||
}
|
||||
|
||||
// A pass's read of one texture, on a TitleReadPool thread: the bytes, their hash, and, when they differ from the
|
||||
// last fill's, the detile into the reserved upload slot. Touches only the job's own buffers and slot.
|
||||
void read_title_job(TitleJob& job) {
|
||||
const TitleTexture& t = *job.entry;
|
||||
job.tiled.resize(std::size_t(job.span));
|
||||
job.copied = copy_guarded(job.tiled.data(), reinterpret_cast<const std::uint8_t*>(t.cpu), std::size_t(job.span),
|
||||
job.write_combined);
|
||||
if (!job.copied) return;
|
||||
hash_guarded(job.tiled.data(), job.tiled.size(), job.hash, true);
|
||||
job.unchanged = job.previous && *job.previous == job.hash;
|
||||
if (job.unchanged) return;
|
||||
job.nonzero = false;
|
||||
rt::d3d12::TitleImageUpload::fill(*job.slot, job.resource->title_binding(), t.layout, job.tiled.data(),
|
||||
job.columns, job.trace, job.nonzero);
|
||||
}
|
||||
|
||||
// A few threads of ours for the refresh's reads: run(n, f) calls f(0..n-1) on them and on the calling thread,
|
||||
// and returns when all are done.
|
||||
class TitleReadPool {
|
||||
public:
|
||||
explicit TitleReadPool(unsigned threads) {
|
||||
for (unsigned i = 0; i < threads; ++i) threads_.emplace_back([this] { serve(); });
|
||||
}
|
||||
~TitleReadPool() {
|
||||
{
|
||||
std::lock_guard lock(mutex_);
|
||||
stop_ = true;
|
||||
}
|
||||
wake_.notify_all();
|
||||
for (auto& thread : threads_) thread.join();
|
||||
}
|
||||
TitleReadPool(const TitleReadPool&) = delete;
|
||||
TitleReadPool& operator=(const TitleReadPool&) = delete;
|
||||
void run(std::size_t count, std::function<void(std::size_t)> work) {
|
||||
{
|
||||
std::lock_guard lock(mutex_);
|
||||
work_ = std::move(work);
|
||||
count_ = count;
|
||||
next_.store(0, std::memory_order_relaxed);
|
||||
busy_ = threads_.size();
|
||||
++generation_;
|
||||
}
|
||||
wake_.notify_all();
|
||||
drain(work_);
|
||||
std::unique_lock lock(mutex_);
|
||||
done_.wait(lock, [&] { return busy_ == 0; });
|
||||
work_ = nullptr;
|
||||
}
|
||||
|
||||
private:
|
||||
void drain(const std::function<void(std::size_t)>& work) {
|
||||
for (std::size_t i; (i = next_.fetch_add(1, std::memory_order_relaxed)) < count_;) work(i);
|
||||
}
|
||||
void serve() {
|
||||
std::uint64_t seen = 0;
|
||||
for (;;) {
|
||||
std::function<void(std::size_t)> work;
|
||||
{
|
||||
std::unique_lock lock(mutex_);
|
||||
wake_.wait(lock, [&] { return stop_ || generation_ != seen; });
|
||||
if (stop_) return;
|
||||
seen = generation_;
|
||||
work = work_;
|
||||
}
|
||||
drain(work);
|
||||
std::lock_guard lock(mutex_);
|
||||
if (!--busy_) done_.notify_all();
|
||||
}
|
||||
}
|
||||
std::mutex mutex_;
|
||||
std::condition_variable wake_, done_;
|
||||
std::function<void(std::size_t)> work_;
|
||||
std::size_t count_ = 0, busy_ = 0;
|
||||
std::atomic<std::size_t> next_{0};
|
||||
std::uint64_t generation_ = 0;
|
||||
bool stop_ = false;
|
||||
std::vector<std::thread> threads_;
|
||||
};
|
||||
TitleReadPool& title_read_pool() {
|
||||
std::call_once(title_read_pool_once_, [this] {
|
||||
const unsigned cores = std::max(1u, std::thread::hardware_concurrency());
|
||||
title_read_pool_ = std::make_unique<TitleReadPool>(std::clamp(cores / 4, 1u, 7u));
|
||||
});
|
||||
return *title_read_pool_;
|
||||
}
|
||||
|
||||
static bool title_memory_write_combined(std::uint64_t address) {
|
||||
MEMORY_BASIC_INFORMATION region{};
|
||||
return VirtualQuery(reinterpret_cast<const void*>(static_cast<std::uintptr_t>(address)), ®ion,
|
||||
|
||||
Reference in New Issue
Block a user