Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
yukiny0811 authored Jul 31, 2024
1 parent 27f6bb9 commit 4a44f83
Showing 1 changed file with 37 additions and 1 deletion.
38 changes: 37 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -224,6 +224,7 @@ class MyRender {

- Int32
- Float
- Double
- Bool
- simd_int2
- simd_int3
Expand All @@ -234,7 +235,23 @@ class MyRender {
- simd_float2x2
- simd_float3x3
- simd_float4x4
- MTLTexture (only 2d texture)
- simd_double2
- simd_double3
- simd_double4
- simd_double2x2
- simd_double3x3
- simd_double4x4
- MTLTexture (2d)
- MTLTexture (3d)
- IntBuffer (array)
- Int2Buffer (array)
- Int3Buffer (array)
- Int4Buffer (array)
- BoolBuffer (array)
- FloatBuffer (array)
- Float2Buffer (array)
- Float3Buffer (array)
- Float4Buffer (array)

### Supported Platforms
- macOS 11.0~
Expand Down Expand Up @@ -263,6 +280,25 @@ var customMetalCode: String {
}
```

### Compute Shader for 3D Textures

```.swift
@EMComputeShader3D
class MyCompute3D {

@EMTextureArgument(.read, .type3D)
var tex: MTLTexture?

var impl: String {
"float4 c = tex.read(gid);"
}

var customMetalCode: String {
""
}
}
```

## Sample Code


Expand Down

0 comments on commit 4a44f83

Please sign in to comment.