/
redgpu
/
ezEngine
Обзор
Документация
Войти
/
redgpu
/
ezEngine
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
Безопасность
dev
Data/Base/Shaders/Materials/MaterialConstants.template
15 строк
776 B
Sanakan8472
Shader Fixes (#1537)
18 апр 2025, 19:38
Не верифицирован
18 апр 2025, 19:38
186b6f5
Код
Авторство
О чём код?
#pragma once #line 2 "Shaders/Materials/MaterialConstants.template" // This file is used to generate the material constants struct by the shader compiler in Code/Engine/RendererCore/ShaderCompiler/Implementation/ShaderCompiler.cpp. #include <Shaders/Common/ConstantBufferMacros.h> #include <Shaders/Common/Platforms.h> #define HAS_MATERIAL_CONSTANTS BEGIN_MATERIAL_CONSTANTS { // The line below should be filled out with the starting line of the material constant section of the shader that is being compiled so that the "Shaders/Materials/MaterialConstants.template" line above does not propagate further through the rest of the code. E.g. #line 8 "RendererTest/Shaders/TestMaterial.vs", followed by the content of the section. #line {0} "{1}" {2} } END_MATERIAL_CONSTANTS