File tree 1 file changed +1
-6
lines changed
crates/bevy_render/src/render_resource
1 file changed +1
-6
lines changed Original file line number Diff line number Diff line change @@ -296,8 +296,6 @@ pub enum ProcessShaderError {
296
296
"Not enough '# endif' lines. Each if statement should be followed by an endif statement."
297
297
) ]
298
298
NotEnoughEndIfs ,
299
- #[ error( "This Shader's format does not support processing shader defs." ) ]
300
- ShaderFormatDoesNotSupportShaderDefs ,
301
299
#[ error( "This Shader's format does not support imports." ) ]
302
300
ShaderFormatDoesNotSupportImports ,
303
301
#[ error( "Unresolved import: {0:?}." ) ]
@@ -477,10 +475,7 @@ impl ShaderProcessor {
477
475
Source :: Wgsl ( source) => source. deref ( ) ,
478
476
Source :: Glsl ( source, _stage) => source. deref ( ) ,
479
477
Source :: SpirV ( source) => {
480
- if shader_defs_unique. is_empty ( ) {
481
- return Ok ( ProcessedShader :: SpirV ( source. clone ( ) ) ) ;
482
- }
483
- return Err ( ProcessShaderError :: ShaderFormatDoesNotSupportShaderDefs ) ;
478
+ return Ok ( ProcessedShader :: SpirV ( source. clone ( ) ) ) ;
484
479
}
485
480
} ;
486
481
You can’t perform that action at this time.
0 commit comments