Skip to content

Commit 707c63b

Browse files
committed
Use ResourceConstrainedComponent for textures
1 parent 2b1ce73 commit 707c63b

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Sources/GateEngine/ECS/3D Specific/MaterialComponent.swift

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,9 @@
77

88
public import Shaders
99

10+
@MainActor
1011
@dynamicMemberLookup
11-
public final class MaterialComponent: Component {
12+
public final class MaterialComponent: ResourceConstrainedComponent {
1213
public var vertexShader: VertexShader? = nil
1314
public var fragmentShader: FragmentShader? = nil
1415
public var blendMode: DrawCommand.Flags.BlendMode = .normal

0 commit comments

Comments
 (0)