Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What is the difference between .hlsl and .hlsli?

Tags:

shader

hlsl

Both seems to be HLSL shader language, but what is the difference between them?

Does it matter to change .hlsl extension to .hlsli, or vise versa?

One of the article I found says that .hlsli file is not going into compilation, is it correct? (Too few articles talking about .hlsli, not confident about this...)

Is it good to go with only .hlsli file, or there should always be some .hlsl files?

It would be appreciative if anyone could tell the same/difference between them, and their usage as well. Thanks.

like image 877
adayoegi Avatar asked Oct 18 '17 11:10

adayoegi


1 Answers

.hlsl is a shader file (contains the shader declaration) while .hlsli is an include file (contains only declarations and macros, no actual shader structure)

like image 68
Pop Catalin Avatar answered Nov 10 '22 00:11

Pop Catalin