Targeting Vulkan and SPIR-V

Iain Buclaw via Digitalmars-d digitalmars-d at puremagic.com
Thu Mar 12 09:14:54 PDT 2015


On 12 March 2015 at 15:57, John Colvin via Digitalmars-d
<digitalmars-d at puremagic.com> wrote:
> On Saturday, 7 March 2015 at 02:18:22 UTC, Iain Buclaw wrote:
>>
>> On 6 Mar 2015 23:30, "Joakim via Digitalmars-d"
>> <digitalmars-d at puremagic.com>
>> wrote:
>>>
>>>
>>> The ground-up redesign of OpenGL, now called Vulkan, has been announced
>>
>> at GDC:
>>>
>>>
>>> http://www.phoronix.com/scan.php?page=article&item=khronos-vulcan-spirv
>>>
>>> Both graphics shaders and the latest verson of OpenCL, which enables
>>
>> computation on the GPU, will target a new IR called SPIR-V:
>>>
>>>
>>>
>>
>> http://www.anandtech.com/show/9039/khronos-announces-opencl-21-c-comes-to-opencl
>>>
>>>
>>> Rather than being forced to use C-like languages like GLSL or OpenCL in
>>
>> the past, this new IR will allow writing graphics shaders and OpenCL code
>> using any language, including a subset of C++14 stripped of exceptions,
>> function pointers, and virtual functions.
>>>
>>>
>>> This would be a good opportunity for D, if ldc or gdc could be made to
>>
>> target SPIR-V.  Ldc would seem to have a leg up, since SPIR was originally
>> based on LLVM IR before diverging with SPIR-V.
>>
>> Unlike LDC, GDC doesn't need to be *made* to target anything.  It's IR is
>> high level enough that you don't need to think (nor care) about your
>> backend target.
>>
>> GCC itself will need a backend to support it though.  ;)
>>
>> Iain
>
>
> Relevant: https://gcc.gnu.org/ml/gcc/2015-03/msg00020.html


David is an awesome guy.  Would be great if he picks up the baton on this.

I reckon most things would be hashed out via GCC builtins, in which
someone writes a library for.


More information about the Digitalmars-d mailing list