Post Azudz9T0GsXx1ZQkNs by dotstdy@mastodon.social
(DIR) More posts by dotstdy@mastodon.social
(DIR) Post #AzudyyoZsKGfzIRJz6 by dotstdy@mastodon.social
2025-11-04T18:12:57Z
0 likes, 0 repeats
slang broke my shader again (basic vertex), so now I need to figure out whose fault it is...before```%233 = OpAccessChain %_ptr_Push__float4x4natural %entryPointParams %int_0 %int_0%320 = OpLoad %_float4x4natural %233```after```%235 = OpAccessChain %_ptr_Push_VConsts_natural %entryPointParams %int_0%250 = OpLoad %VConsts_natural %235%252 = OpCopyLogical %VConsts_natural_logical %250%322 = OpCompositeExtract %_float4x4_logicalnatural %252 0````%322` causes spirv_to_nir to assert
(DIR) Post #Azudz011PXofiBGm1I by dotstdy@mastodon.social
2025-11-04T18:16:26Z
0 likes, 0 repeats
who wants to write a new shading language with me
(DIR) Post #Azudz1D6y555PxvwVE by wolfpld@mastodon.gamedev.place
2025-11-04T18:21:16Z
0 likes, 0 repeats
@dotstdy Let's name it "slang"! It's very clever, you see, s-hader lang-uage! Nobody thought of this before!
(DIR) Post #Azudz2PCWcLV7kb6zA by aras@mastodon.gamedev.place
2025-11-04T20:01:38Z
1 likes, 0 repeats
@wolfpld @dotstdy why not make it have a C-like syntax, but also kinda for graphics -- like, "C for graphics". Maybe it could be called "Cg", if that's not a too strange name.
(DIR) Post #Azudz3xGlRBvvhXpj6 by dotstdy@mastodon.social
2025-11-04T19:56:47Z
0 likes, 0 repeats
Perhaps mesa! slang is generating```%250 = OpLoad %VSConstants_natural %235%252 = OpCopyLogical %VSConstants_natural_logical %250```Then it tries to access through that version`%322 = OpCompositeExtract %_MatrixStorage_float4x4_logicalnatural %252 0`Which matches the struct definition`%VSConstants_natural_logical = OpTypeStruct %_MatrixStorage_float4x4_logicalnatural ...`And mesa borks on %322:ssa: _MatrixStorage_float4x4natural, bare: _MatrixStorage_float4x4_logicalnatural
(DIR) Post #Azudz9T0GsXx1ZQkNs by dotstdy@mastodon.social
2025-11-04T19:57:56Z
0 likes, 0 repeats
So perhaps the mesa handling of `OpCopyLogical` is borked?