Jot Kailay on Nostr: npub1u24tf…532pl Thanks for awesome metal SwiftUI tutorial For the loupe the ...
npub1u24tf7lkhs9wec3fg2xzddfpu49hwlywsdynx568xfflcjcntqasr532pl (npub1u24…32pl) Thanks for awesome metal SwiftUI tutorial
For the loupe the variable list is:
loupe( float2 pos, SwiftUI::Layer layer, etc )
But then at 38:36 for the call you use:
ShaderLibrary.loupe(
.float2(proxy.size),
.float2(offset)) // !!
, etc
Which gives “No exact match in call to static method ‘float2’” error
Shouldn’t the layer be passed in somehow as that parameter?
Published at
2023-12-21 17:38:32Event JSON
{
"id": "2823f92f8b9a67d4e55ffffa345257f76cb87978305256f070cf4d7a57d2d531",
"pubkey": "d065f8f2778581c895f7061a24da147e28e5c0488f10fde0f45b6c49eb4195f6",
"created_at": 1703180312,
"kind": 1,
"tags": [
[
"p",
"e2aab4fbf6bc0aece229428c26b521e54b777c8e83493353473253fc4b13583b",
"wss://relay.mostr.pub"
],
[
"p",
"4b686c1107b2b995f920bf40de4296c71eb487228f04db2627a411d6fb4706fd",
"wss://relay.mostr.pub"
],
[
"proxy",
"https://mastodon.gamedev.place/users/jotkailay/statuses/111619624970083198",
"activitypub"
]
],
"content": "nostr:npub1u24tf7lkhs9wec3fg2xzddfpu49hwlywsdynx568xfflcjcntqasr532pl \n\nThanks for awesome metal SwiftUI tutorial\n\nFor the loupe the variable list is: \nloupe( float2 pos, SwiftUI::Layer layer, etc )\n\nBut then at 38:36 for the call you use:\nShaderLibrary.loupe(\n.float2(proxy.size), \n.float2(offset)) // !!\n, etc\n\nWhich gives “No exact match in call to static method ‘float2’” error\n\nShouldn’t the layer be passed in somehow as that parameter?",
"sig": "4b36e3a165520759729aa24a129e5db21e146f33fa945a3bc05f4e2eedbde57cc06a97ac2ee85473d2b953eec036c5e5e310b9739415b0ff8b8daba3d9c89793"
}