Add Debug derive for ScreenSpaceAmbientOcclusionSettings struct (#13387)

# Objective

To streamline the code which utilizes `Debug` in user's struct like
`GraphicsSettings`. This addition aims to enhance code simplicity and
readability.

## Solution

Add `Debug` derive for `ScreenSpaceAmbientOcclusionSettings` struct.

## Testing

Should have no impact.
This commit is contained in:
Xzihnago 2024-05-16 19:29:34 +08:00 committed by GitHub
parent d9993a8092
commit eba8744a70
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -153,13 +153,13 @@ pub struct ScreenSpaceAmbientOcclusionBundle {
/// Doing so greatly reduces SSAO noise. /// Doing so greatly reduces SSAO noise.
/// ///
/// SSAO is not supported on `WebGL2`, and is not currently supported on `WebGPU` or `DirectX12`. /// SSAO is not supported on `WebGL2`, and is not currently supported on `WebGPU` or `DirectX12`.
#[derive(Component, ExtractComponent, Reflect, PartialEq, Eq, Hash, Clone, Default)] #[derive(Component, ExtractComponent, Reflect, PartialEq, Eq, Hash, Clone, Default, Debug)]
#[reflect(Component)] #[reflect(Component)]
pub struct ScreenSpaceAmbientOcclusionSettings { pub struct ScreenSpaceAmbientOcclusionSettings {
pub quality_level: ScreenSpaceAmbientOcclusionQualityLevel, pub quality_level: ScreenSpaceAmbientOcclusionQualityLevel,
} }
#[derive(Reflect, PartialEq, Eq, Hash, Clone, Copy, Default)] #[derive(Reflect, PartialEq, Eq, Hash, Clone, Copy, Default, Debug)]
pub enum ScreenSpaceAmbientOcclusionQualityLevel { pub enum ScreenSpaceAmbientOcclusionQualityLevel {
Low, Low,
Medium, Medium,