mirror of
https://github.com/Takiiiiiiii/strato.git
synced 2025-07-17 08:46:39 +00:00
Introduce Custom Span Class + IPC Buffer -> Span
This commit is contained in:
@ -89,7 +89,7 @@ namespace skyline::gpu::gpfifo {
|
||||
}
|
||||
}
|
||||
|
||||
void GPFIFO::Push(std::span<GpEntry> entries) {
|
||||
void GPFIFO::Push(span<GpEntry> entries) {
|
||||
std::lock_guard lock(pushBufferQueueLock);
|
||||
bool beforeBarrier{false};
|
||||
|
||||
|
@ -173,7 +173,7 @@ namespace skyline::gpu {
|
||||
/**
|
||||
* @brief Pushes a list of entries to the FIFO, these commands will be executed on calls to 'Step'
|
||||
*/
|
||||
void Push(std::span<GpEntry> entries);
|
||||
void Push(span<GpEntry> entries);
|
||||
};
|
||||
}
|
||||
}
|
||||
|
@ -111,7 +111,7 @@ namespace skyline {
|
||||
* @tparam T The type of span to read into
|
||||
*/
|
||||
template<typename T>
|
||||
void Read(std::span<T> destination, u64 address) const {
|
||||
void Read(span<T> destination, u64 address) const {
|
||||
Read(reinterpret_cast<u8 *>(destination.data()), address, destination.size_bytes());
|
||||
}
|
||||
|
||||
@ -132,7 +132,7 @@ namespace skyline {
|
||||
* @brief Writes out a span to a region of the GPU virtual address space
|
||||
*/
|
||||
template<typename T>
|
||||
void Write(std::span<T> source, u64 address) const {
|
||||
void Write(span<T> source, u64 address) const {
|
||||
Write(reinterpret_cast<u8 *>(source.data()), address, source.size_bytes());
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user