@@ -909,7 +909,8 @@ impl ShaderResourceExtension for ShaderResource {
909909}
910910
911911lazy_static ! {
912- static ref STANDARD : BuiltInResource <Shader > = BuiltInResource :: new(
912+ /// Standard shader.
913+ pub static ref STANDARD : BuiltInResource <Shader > = BuiltInResource :: new(
913914 STANDARD_SHADER_NAME ,
914915 embedded_data_source!( "standard/standard.shader" ) ,
915916 |data| {
@@ -920,7 +921,8 @@ lazy_static! {
920921 )
921922 }
922923 ) ;
923- static ref STANDARD_2D : BuiltInResource <Shader > = BuiltInResource :: new(
924+ /// Standard 2D shader.
925+ pub static ref STANDARD_2D : BuiltInResource <Shader > = BuiltInResource :: new(
924926 STANDARD_2D_SHADER_NAME ,
925927 embedded_data_source!( "standard/standard2d.shader" ) ,
926928 |data| ShaderResource :: new_ok(
@@ -929,7 +931,8 @@ lazy_static! {
929931 Shader :: from_string_bytes( data) . unwrap( ) ,
930932 )
931933 ) ;
932- static ref STANDARD_PARTICLE_SYSTEM : BuiltInResource <Shader > = BuiltInResource :: new(
934+ /// Standard particle system shader.
935+ pub static ref STANDARD_PARTICLE_SYSTEM : BuiltInResource <Shader > = BuiltInResource :: new(
933936 STANDARD_PARTICLE_SYSTEM_SHADER_NAME ,
934937 embedded_data_source!( "standard/standard_particle_system.shader" ) ,
935938 |data| ShaderResource :: new_ok(
@@ -938,7 +941,8 @@ lazy_static! {
938941 Shader :: from_string_bytes( data) . unwrap( ) ,
939942 )
940943 ) ;
941- static ref STANDARD_SPRITE : BuiltInResource <Shader > = BuiltInResource :: new(
944+ /// Standard sprite shader.
945+ pub static ref STANDARD_SPRITE : BuiltInResource <Shader > = BuiltInResource :: new(
942946 STANDARD_SPRITE_SHADER_NAME ,
943947 embedded_data_source!( "standard/standard_sprite.shader" ) ,
944948 |data| ShaderResource :: new_ok(
@@ -947,7 +951,8 @@ lazy_static! {
947951 Shader :: from_string_bytes( data) . unwrap( ) ,
948952 )
949953 ) ;
950- static ref STANDARD_TERRAIN : BuiltInResource <Shader > = BuiltInResource :: new(
954+ /// Standard terrain shader.
955+ pub static ref STANDARD_TERRAIN : BuiltInResource <Shader > = BuiltInResource :: new(
951956 STANDARD_TERRAIN_SHADER_NAME ,
952957 embedded_data_source!( "standard/terrain.shader" ) ,
953958 |data| {
@@ -958,7 +963,8 @@ lazy_static! {
958963 )
959964 }
960965 ) ;
961- static ref STANDARD_TILE : BuiltInResource <Shader > = BuiltInResource :: new(
966+ /// Standard tile shader.
967+ pub static ref STANDARD_TILE : BuiltInResource <Shader > = BuiltInResource :: new(
962968 STANDARD_TILE_SHADER_NAME ,
963969 embedded_data_source!( "standard/tile.shader" ) ,
964970 |data| {
@@ -969,7 +975,8 @@ lazy_static! {
969975 )
970976 }
971977 ) ;
972- static ref STANDARD_TWOSIDES : BuiltInResource <Shader > = BuiltInResource :: new(
978+ /// Standard two-sides shader.
979+ pub static ref STANDARD_TWOSIDES : BuiltInResource <Shader > = BuiltInResource :: new(
973980 STANDARD_TWOSIDES_SHADER_NAME ,
974981 embedded_data_source!( "standard/standard-two-sides.shader" ) ,
975982 |data| ShaderResource :: new_ok(
@@ -978,7 +985,8 @@ lazy_static! {
978985 Shader :: from_string_bytes( data) . unwrap( ) ,
979986 )
980987 ) ;
981- static ref STANDARD_WIDGET : BuiltInResource <Shader > = BuiltInResource :: new(
988+ /// Standard widget shader.
989+ pub static ref STANDARD_WIDGET : BuiltInResource <Shader > = BuiltInResource :: new(
982990 STANDARD_WIDGET_SHADER_NAME ,
983991 embedded_data_source!( "standard/widget.shader" ) ,
984992 |data| ShaderResource :: new_ok(
0 commit comments