Format code and misc cleanup

This commit is contained in:
Billy Laws
2020-08-09 15:02:38 +01:00
committed by ◱ PixelyIon
parent fcae5d54da
commit ade8a711fb
17 changed files with 60 additions and 46 deletions

View File

@ -328,26 +328,26 @@ namespace skyline {
};
enum class CounterType : u8 {
Zero = 0x0,
InputVertices = 0x1,
InputPrimitives = 0x3,
VertexShaderInvocations = 0x5,
GeometryShaderInvocations = 0x7,
GeometryShaderPrimitives = 0x9,
ZcullStats0 = 0xa,
Zero = 0x0,
InputVertices = 0x1,
InputPrimitives = 0x3,
VertexShaderInvocations = 0x5,
GeometryShaderInvocations = 0x7,
GeometryShaderPrimitives = 0x9,
ZcullStats0 = 0xa,
TransformFeedbackPrimitivesWritten = 0xb,
ZcullStats1 = 0xc,
ZcullStats2 = 0xe,
ClipperInputPrimitives = 0xf,
ZcullStats3 = 0x10,
ClipperOutputPrimitives = 0x11,
PrimitivesGenerated = 0x12,
FragmentShaderInvocations = 0x13,
SamplesPassed = 0x15,
TransformFeedbackOffset = 0x1a,
TessControlShaderInvocations = 0x1b,
TessEvaluationShaderInvocations = 0x1d,
TessEvaluationShaderPrimitives = 0x1f
ZcullStats1 = 0xc,
ZcullStats2 = 0xe,
ClipperInputPrimitives = 0xf,
ZcullStats3 = 0x10,
ClipperOutputPrimitives = 0x11,
PrimitivesGenerated = 0x12,
FragmentShaderInvocations = 0x13,
SamplesPassed = 0x15,
TransformFeedbackOffset = 0x1a,
TessControlShaderInvocations = 0x1b,
TessEvaluationShaderInvocations = 0x1d,
TessEvaluationShaderPrimitives = 0x1f
};
enum class StructureSize : u8 {

View File

@ -83,7 +83,7 @@ namespace skyline::gpu {
opcode += opcode->immediate;
return true;
} else {
Opcode* targetOpcode = opcode + opcode->immediate;
Opcode *targetOpcode = opcode + opcode->immediate;
// Step into delay slot
opcode++;

View File

@ -113,7 +113,7 @@ namespace skyline {
*/
template<typename T>
void Read(std::span<T> destination, u64 address) const {
Read(reinterpret_cast<u8*>(destination.data()), address, destination.size_bytes());
Read(reinterpret_cast<u8 *>(destination.data()), address, destination.size_bytes());
}
/**
@ -123,7 +123,7 @@ namespace skyline {
template<typename T>
T Read(u64 address) const {
T obj;
Read(reinterpret_cast<u8*>(&obj), address, sizeof(T));
Read(reinterpret_cast<u8 *>(&obj), address, sizeof(T));
return obj;
}
@ -134,7 +134,7 @@ namespace skyline {
*/
template<typename T>
void Write(std::span<T> source, u64 address) const {
Write(reinterpret_cast<u8*>(source.data()), address, source.size_bytes());
Write(reinterpret_cast<u8 *>(source.data()), address, source.size_bytes());
}
/**
@ -143,7 +143,7 @@ namespace skyline {
*/
template<typename T>
void Write(T source, u64 address) const {
Write(reinterpret_cast<u8*>(&source), address, sizeof(T));
Write(reinterpret_cast<u8 *>(&source), address, sizeof(T));
}
};
}