mojoshader_compiler.c
changeset 972 993c4d6e21a8
parent 971 58dcafbc908b
child 973 6d4cdbc21301
equal deleted inserted replaced
971:58dcafbc908b 972:993c4d6e21a8
  3248 } // build_astdata
  3248 } // build_astdata
  3249 
  3249 
  3250 
  3250 
  3251 static void choose_src_profile(Context *ctx, const char *srcprofile)
  3251 static void choose_src_profile(Context *ctx, const char *srcprofile)
  3252 {
  3252 {
  3253     #define TEST_PROFILE(x) do { \
  3253     ctx->source_profile = srcprofile;
  3254         if (strcmp(srcprofile, x) == 0) { \
  3254 
  3255             ctx->source_profile = x; \
  3255     #define TEST_PROFILE(x) if (strcmp(srcprofile, x) == 0) { return; }
  3256             return; \
       
  3257         } \
       
  3258     } while (0)
       
  3259 
  3256 
  3260     TEST_PROFILE(MOJOSHADER_SRC_PROFILE_HLSL_VS_1_1);
  3257     TEST_PROFILE(MOJOSHADER_SRC_PROFILE_HLSL_VS_1_1);
  3261     TEST_PROFILE(MOJOSHADER_SRC_PROFILE_HLSL_VS_2_0);
  3258     TEST_PROFILE(MOJOSHADER_SRC_PROFILE_HLSL_VS_2_0);
  3262     TEST_PROFILE(MOJOSHADER_SRC_PROFILE_HLSL_VS_3_0);
  3259     TEST_PROFILE(MOJOSHADER_SRC_PROFILE_HLSL_VS_3_0);
  3263     TEST_PROFILE(MOJOSHADER_SRC_PROFILE_HLSL_PS_1_1);
  3260     TEST_PROFILE(MOJOSHADER_SRC_PROFILE_HLSL_PS_1_1);