Version: Unity 6 (6000.0)
Language : English
Duplicate HLSL in multiple programs
HLSL data types in Unity

Shader input

Resources for inputting and using data in shaderA program that runs on the GPU. More info
See in Glossary
programs.

Page Description
HLSL data types in Unity Understand how Unity handles some HLSL data types differently to provide better support on mobile platforms.
Use 16-bit precision in shaders Use 16-bit precision in GPU calculations, so shaders use less memory, bandwidth, and power, and calculations are faster.
Input vertex data into a shader Use a built-in data structure as input for vertex shadersA program that runs on each vertex of a 3D model when the model is being rendered. More info
See in Glossary
, or input a custom vertex structure.
Texture samplers Understand using separate textures and samplers, or inline sampler states.

Additional resources

Duplicate HLSL in multiple programs
HLSL data types in Unity