You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
if (graphicsPipelineCreateInfo->multisample_state.enable_alpha_to_coverage) {
854
+
if (graphicsPipelineCreateInfo->target_info.num_color_targets<1) {
855
+
SDL_assert_release(!"Alpha-to-coverage enabled but no color targets present!");
856
+
returnNULL;
857
+
}
858
+
if (!FormatHasAlpha(graphicsPipelineCreateInfo->target_info.color_target_descriptions[0].format)) {
859
+
SDL_assert_release(!"Format is not compatible with alpha-to-coverage!");
860
+
returnNULL;
861
+
}
862
+
863
+
// TODO: validate that format supports belnding? This is only required on Metal.
864
+
}
857
865
if (graphicsPipelineCreateInfo->vertex_input_state.num_vertex_buffers>0&&graphicsPipelineCreateInfo->vertex_input_state.vertex_buffer_descriptions==NULL) {
858
866
SDL_assert_release(!"Vertex buffer descriptions array pointer cannot be NULL!");
0 commit comments