JX-Master / LunaSDK

Luna SDK is a C++ software development framework for real-time rendering applications.
Other
124 stars 8 forks source link

`RHI::RasterizerDesc` is not fully supported on all graphics APIs. #9

Closed JX-Master closed 1 year ago

JX-Master commented 1 year ago
  1. depth_clip_enable is not supported on Metal backend.
  2. multisample_enable, antialiased_line_enable and conservative_raster_enabled are D3D12-specific APIs that are not supported on Vulkan and Metal and they are actually never used. Remove them from RHI API.
JX-Master commented 1 year ago

Also, VkPipelineRasterizationStateCreateInfo::depthBiasEnable must be set to VK_TRUE if any of depth_bias and slope_scaled_depth_bias is not 0.