[Metal] Writable resources in non-void vertex function
Metalのシェーダー(Metal Shading Language / MSL)の頂点シェーダーで、
vertex ColorInOut vertexShader(device float4 *positions [[ buffer(0) ]],
...
という感じで宣言していて、
Writable resources in non-void vertex function
とwarningが出ていた。non-voidな頂点関数でwritableなリソースを使ってますよという警告。
このdeviceってなんだっけ?というのを拙著Metal入門で確認すると、
最後まで読んでいただきありがとうございます!もし参考になる部分があれば、スキを押していただけると励みになります。 Twitterもフォローしていただけたら嬉しいです。 https://twitter.com/shu223/