compiling using the builtin pipeline gives errors because of the subshaders for universal and HD render pipeline.
you can add PackageRequirements that way in PassesUniversal.hlsl and DearImGui-Procedural.shader to overcome the issue
// shader for HD render pipeline
SubShader
{
Tags { "RenderType" = "Transparent" "RenderPipeline" = "HDRenderPipeline" "PreviewType" = "Plane" }
LOD 100
Lighting Off
Cull Off ZWrite On ZTest Always
Blend SrcAlpha OneMinusSrcAlpha
Pass
{
PackageRequirements {
"com.unity.render-pipelines.high-definition"
}
Name "DEARIMGUI HDRP"
HLSLPROGRAM
#pragma vertex ImGuiPassVertex
#pragma fragment ImGuiPassFrag
#include "./PassesHD.hlsl"
ENDHLSL
}
}
compiling using the builtin pipeline gives errors because of the subshaders for universal and HD render pipeline. you can add
PackageRequirements
that way inPassesUniversal.hlsl
andDearImGui-Procedural.shader
to overcome the issue