Skip to content

Commit 62b3398

Browse files
committed
add svd to fragment
1 parent f237926 commit 62b3398

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Sources/EasyMetalShader/SCMetalRenderFunction.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ import MetalKit
99
import simd
1010

1111
open class SCMetalRenderFunction {
12-
private static let initialMetalHeader = "#include <metal_stdlib> \n using namespace metal;inline float rand(int x, int y, int z) {int seed = x + y * 57 + z * 241;seed = (seed<< 13) ^ seed;return (( 1.0 - ( (seed * (seed * seed * 15731 + 789221) + 1376312589) & 2147483647) / 1073741824.0f) + 1.0f) / 2.0f;}struct RasterizerData {float4 position [[ position ]];float4 color;float size [[point_size]];};"
12+
private static let initialMetalHeader = "#include <metal_stdlib> \n using namespace metal;inline float rand(int x, int y, int z) {int seed = x + y * 57 + z * 241;seed = (seed<< 13) ^ seed;return (( 1.0 - ( (seed * (seed * seed * 15731 + 789221) + 1376312589) & 2147483647) / 1073741824.0f) + 1.0f) / 2.0f;}struct RasterizerData {float4 position [[ position ]];float4 color;float size [[point_size]];};" + MetalFuncs.svd
1313

1414
private var args: [String: SCMetalArgument]
1515

0 commit comments

Comments
 (0)