MCPcopy Create free account
hub / github.com/Inori/GPCS4 / SceResource

Method SceResource

GPCS4/Graphics/Sce/SceResource.cpp:74–82  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

72 /////////////////////////////////////////////////////////////////////
73
74 SceResource::SceResource(const SceBuffer& buffer) :
75 m_type(SceResourceType::Buffer),
76 m_buffer(buffer)
77 {
78 m_cpuMemory = buffer.cpuMemory();
79 m_gpuMemory = buffer.gpuMemory();
80
81 m_memSize = buffer.memorySize();
82 }
83
84 SceResource::SceResource(const SceTexture& texture) :
85 m_type(SceResourceType::Texture),

Callers

nothing calls this directly

Calls 3

memorySizeMethod · 0.80
cpuMemoryMethod · 0.45
gpuMemoryMethod · 0.45

Tested by

no test coverage detected