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
Copyright © 2023 Unity Technologies
优美缔软件(上海)有限公司 版权所有
"Unity"、Unity 徽标及其他 Unity 商标是 Unity Technologies 或其附属机构在美国及其他地区的商标或注册商标。其他名称或品牌是其各自所有者的商标。
公安部备案号:
31010902002961