mirror of
https://github.com/doitsujin/dxvk.git
synced 2024-12-12 13:08:50 +01:00
54ed8f0bb0
Co-authored-by: Philip Rebohle <philip.rebohle@tu-dortmund.de> Co-authored-by: Robin Kertels <robin.kertels@gmail.com> Co-authored-by: pchome <pchome@users.noreply.github.com> Co-authored-by: Christopher Egert <cme3000@gmail.com> Co-authored-by: Derek Lesho <dereklesho52@Gmail.com> Co-authored-by: Luis Cáceres <lacaceres97@gmail.com> Co-authored-by: Nelson Chen <crazysim@gmail.com> Co-authored-by: Edmondo Tommasina <edmondo.tommasina@gmail.com> Co-authored-by: Riesi <riesi@opentrash.com> Co-authored-by: gbMichelle <gbmichelle.dev@gmail.com>
28 lines
488 B
C++
28 lines
488 B
C++
#include "dxso_code.h"
|
|
|
|
namespace dxvk {
|
|
|
|
DxsoCode::DxsoCode(DxsoReader& reader) {
|
|
m_code =
|
|
reinterpret_cast<const uint32_t*>(reader.currentPtr());
|
|
}
|
|
|
|
const uint32_t* DxsoCodeIter::ptrAt(uint32_t id) const {
|
|
return m_ptr + id;
|
|
}
|
|
|
|
|
|
uint32_t DxsoCodeIter::at(uint32_t id) const {
|
|
return m_ptr[id];
|
|
}
|
|
|
|
|
|
uint32_t DxsoCodeIter::read() {
|
|
return *(m_ptr++);
|
|
}
|
|
|
|
DxsoCodeIter DxsoCodeIter::skip(uint32_t n) const {
|
|
return DxsoCodeIter(m_ptr + n);
|
|
}
|
|
|
|
} |