--- title: "@NOTimothyLottes Could a shader compiler not do this? i.e." type: archive source: twitter source_url: "https://x.com/BoganBits/status/1912556384572653833" author: "0xbogan" handle: BoganBits post_id: "1912556384572653833" date: 2025-04-16 archived: 2026-08-25 draft: false tags: - archive - twitter - NOTimothyLottes description: "@NOTimothyLottes Could a shader compiler not do this? i.e." in_reply_to: "" parent_post_id: "1912477061467304351" --- ## Source - URL: https://x.com/BoganBits/status/1912556384572653833 - Author: 0xbogan (@BoganBits) - Posted: 2025-04-16 17:19:10 ## Branch **1/** **@BoganBits** ^1912556384572653833 **@NOTimothyLottes** Could a shader compiler not do this? i.e. detect such inefficient code, and "re-vectorise" it, so to speak i.e. have each shader instance do 2 at once, interleaved **2/** **@NOTimothyLottes** ^1912564973638726123 **@BoganBits** This is something to be done at the dispatch level, not something a compiler knows about ## Related - Spine: [[archive/threads/NOTimothyLottes/2025-04-16-cs-optimization-brain-dumping]]