Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

DarkBASIC Professional Discussion / Does Dark Basic Pro support shaders written in ASM ?

Author
Message
Juggernaut
14
Years of Service
User Offline
Joined: 12th Mar 2012
Location:
Posted: 8th Apr 2012 11:41
Hello,

Does Dark Basic Pro support loading and application of shaders written in ASM ?

If not are there any plugins available to achieve it ? Any suggestions of work around - without doing code conversion ?

Thanks,
Green Gandalf
VIP Member
21
Years of Service
User Offline
Joined: 3rd Jan 2005
Playing: Malevolence:Sword of Ahkranox, Skyrim, Civ6.
Posted: 8th Apr 2012 14:02
Yes.

There are examples of such shaders on the old "Ultimate Shader" threads (there are two threads).

One is linked to here

Old Stickies

I'm not sure but I think some of the shaders in the "Ultimate Shader Pack" are written in asm as well.

Most people here use HLSL so you'll find it hard to get help if things go wrong. Why do you want to use asm rather than HLSL?
Juggernaut
14
Years of Service
User Offline
Joined: 12th Mar 2012
Location:
Posted: 8th Apr 2012 15:49
@Green Gandalf: Thank you for pointing me to the right direction. I will look into it.
TheComet
18
Years of Service
User Offline
Joined: 18th Oct 2007
Location: I`m under ur bridge eating ur goatz.
Posted: 8th Apr 2012 19:27
Isn't programming in ASM GPU specific? Or do all GPUs use the same instruction set and therefore all share the same assembler language?

TheComet

Green Gandalf
VIP Member
21
Years of Service
User Offline
Joined: 3rd Jan 2005
Playing: Malevolence:Sword of Ahkranox, Skyrim, Civ6.
Posted: 9th Apr 2012 12:43
Quote: "Isn't programming in ASM GPU specific?"


No - it's part of DirectX, etc. It's possible that the final machine code passed to the GPU is GPU specific but I've no idea about the details at that level. Also different GPUs will have different features available but as far as I'm aware they all use the same asm code at the application level.

In the good old days () you could write your own versions of assembly language and your own compiler - but your assembly code would have to be compiled to machine or processor specific machine code.

Login to post a reply

Server time is: 2026-07-10 10:21:09
Your offset time is: 2026-07-10 10:21:09