flat assembler
Message board for the users of flat assembler.
Index
> Programming Language Design > [fasmg] type checking |
Author |
|
bitRAKE 21 Mar 2021, 22:43
Code: if ~ defined SPIRV define SPIRV redefine SPIRV SPIRV namespace SPIRV element Capability iterate n, Matrix,Shader,Geometry,Tessellation,Addresses,Linkage,Kernel,\ Vector16,Float16Buffer,Float16,Float64,Int64,Int64Atomics,ImageBasic,\ ImageReadWrite,ImageMipmap ; <truncated> element Capability.n: Capability + % - 1 end iterate ;calminstruction(id) enum type,name struc(id) enum type,name if defined SPIRV.type.name id = 1 metadataof SPIRV.type.name - 1 elementof (1 metadataof SPIRV.type.name) else err `name, " not of type ", `type end if end struc end namespace ; SPIRV macro OpCapability C local id dw 17,2 id SPIRV.enum Capability,C dd id end macro end if OpCapability Shader OpCapability GroupNonUniformArithmetic SPIR-V reference. _________________ ¯\(°_o)/¯ “languages are not safe - uses can be” Bjarne Stroustrup |
|||
21 Mar 2021, 22:43 |
|
Roman 23 Mar 2021, 05:45
O! Vulkan API
|
|||
23 Mar 2021, 05:45 |
|
bitRAKE 24 Mar 2021, 15:50
Once we can code SPIR-V along side x86, it becomes easier to adapt shaders to the hardware instead of being limit to a static execution model on the GPU.
https://github.com/Erkaman/vulkan_minimal_compute/blob/master/src/main.cpp _________________ ¯\(°_o)/¯ “languages are not safe - uses can be” Bjarne Stroustrup |
|||
24 Mar 2021, 15:50 |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2024, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.