mirror of
https://github.com/optiscaler/OptiScaler.git
synced 2026-08-26 08:06:33 +00:00
Add vulkan shader compile batch
This commit is contained in:
@@ -0,0 +1,14 @@
|
||||
@echo off
|
||||
|
||||
if "%~1"=="" (
|
||||
echo Usage: %~nx0 ShaderName
|
||||
exit /b 1
|
||||
)
|
||||
|
||||
set ShaderName=%1
|
||||
|
||||
echo Creating Vulkan Spir-V
|
||||
"%~dp0dxc.exe" -spirv -T cs_6_0 -E CSMain -Cc -Vi "%ShaderName%.hlsl" -Fo "%ShaderName%_Shader_Vk.spv"
|
||||
|
||||
echo Creating Vulkan Header
|
||||
python "%~dp0create_header.py" "%ShaderName%_Shader_Vk.spv" "%ShaderName%_Shader_Vk.h" %ShaderName%_spv
|
||||
Reference in New Issue
Block a user