Skip to content
Snippets Groups Projects
Commit 584f8473 authored by Elizabeth Figura's avatar Elizabeth Figura Committed by Alexandre Julliard
Browse files

vkd3d-compiler: Also pass the entry point as part of the SPIR-V target information.

parent 21649154
No related branches found
No related tags found
No related merge requests found
......@@ -583,6 +583,7 @@ static bool has_colour(FILE *f)
int main(int argc, char **argv)
{
struct vkd3d_shader_spirv_target_info spirv_target_info = {0};
struct vkd3d_shader_hlsl_source_info hlsl_source_info = {0};
bool close_input = false, close_output = false;
struct vkd3d_shader_compile_info info;
......@@ -654,9 +655,14 @@ int main(int argc, char **argv)
info.source_name = options.filename;
hlsl_source_info.type = VKD3D_SHADER_STRUCTURE_TYPE_HLSL_SOURCE_INFO;
hlsl_source_info.next = &spirv_target_info;
hlsl_source_info.profile = options.profile;
hlsl_source_info.entry_point = options.entry_point;
spirv_target_info.type = VKD3D_SHADER_STRUCTURE_TYPE_SPIRV_TARGET_INFO;
spirv_target_info.entry_point = options.entry_point;
spirv_target_info.environment = VKD3D_SHADER_SPIRV_ENVIRONMENT_VULKAN_1_0;
if (!read_shader(&info.source, input))
{
fprintf(stderr, "Failed to read input shader.\n");
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment