mirror of
https://github.com/MobileGL-Dev/MobileGL
synced 2026-11-28 12:12:16 +09:00
[Refactor] (P13 W5 S3): Magma's wire texture and vertex-input builders and the buffer shadow size follow the record-arm guard.
This commit is contained in:
1 parent
c285f350b1
commit
bb45648c41
4 files changed
+6
-3
No files matched your search
@@ -3150,7 +3150,7 @@ namespace MobileGL::MG_Backend::DirectVulkan {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
#if MOBILEGL_BUILD_DISAGGREGATED
|
#if MOBILEGL_BUILD_RECORD_ARM
|
||||||
Bool UniformManager::PrepareWireTextureResources(const MagmaProgramSource& program,
|
Bool UniformManager::PrepareWireTextureResources(const MagmaProgramSource& program,
|
||||||
const ProgramFactory::VkProgramObject& programObj) {
|
const ProgramFactory::VkProgramObject& programObj) {
|
||||||
if (!program.IsWire()) return true;
|
if (!program.IsWire()) return true;
|
||||||
|
|||||||
@@ -393,7 +393,7 @@ namespace MobileGL::MG_Backend::DirectVulkan {
|
|||||||
return entry;
|
return entry;
|
||||||
}
|
}
|
||||||
|
|
||||||
#if MOBILEGL_BUILD_DISAGGREGATED
|
#if MOBILEGL_BUILD_RECORD_ARM
|
||||||
Bool VertexInputStateFactory::BuildWireVertexInput(const MG_Pipe::MGPipeVertexElementsRecord& elements,
|
Bool VertexInputStateFactory::BuildWireVertexInput(const MG_Pipe::MGPipeVertexElementsRecord& elements,
|
||||||
const MG_Pipe::MGPipeApplierState& state, Uint32 activeMask, BackendVertexInputState& out) const {
|
const MG_Pipe::MGPipeApplierState& state, Uint32 activeMask, BackendVertexInputState& out) const {
|
||||||
out = BackendVertexInputState{};
|
out = BackendVertexInputState{};
|
||||||
|
|||||||
@@ -991,7 +991,7 @@ namespace MobileGL::MG_State::GLState {
|
|||||||
return m_resource.Bytes();
|
return m_resource.Bytes();
|
||||||
}
|
}
|
||||||
|
|
||||||
#if MOBILEGL_BUILD_DISAGGREGATED
|
#if MOBILEGL_BUILD_RECORD_ARM
|
||||||
SizeT BufferObject::ShadowAllocationBytes() const {
|
SizeT BufferObject::ShadowAllocationBytes() const {
|
||||||
// The extent of the very pointer MappedData() hands out, read by the same caller
|
// The extent of the very pointer MappedData() hands out, read by the same caller
|
||||||
// (the tracker's registration) on the same thread: the same rule-E surface, the
|
// (the tracker's registration) on the same thread: the same rule-E surface, the
|
||||||
|
|||||||
@@ -0,0 +1,3 @@
|
|||||||
|
open | MobileGL/MG_Backend/DirectVulkan/Renderer/UniformManager.cpp | Bool UniformManager::PrepareWireTextureResources(
|
||||||
|
open | MobileGL/MG_Backend/DirectVulkan/Renderer/VertexInputStateFactory.cpp | Bool VertexInputStateFactory::BuildWireVertexInput(
|
||||||
|
open | MobileGL/MG_State/GLState/BufferState/BufferObject.cpp | SizeT BufferObject::ShadowAllocationBytes() const {
|
||||||
Reference in new issue
Block a user