From f7478f448ab1493986a4fcb60f7567c95a8dba4d Mon Sep 17 00:00:00 2001 From: dataphract Date: Mon, 7 Feb 2022 22:07:43 +0000 Subject: [PATCH] doc: remove mention of void return type in entry_point docs (#3881) # Objective The docs for `{VertexState, FragmentState}::entry_point` stipulate that the entry point function in the shader must return void. This seems to be specific to GLSL; WGSL has no `void` type and its entry point functions return values that describe their output. ## Solution Remove the mention of the `void` return type. --- crates/bevy_render/src/render_resource/pipeline.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/crates/bevy_render/src/render_resource/pipeline.rs b/crates/bevy_render/src/render_resource/pipeline.rs index adeab97652..d3bd820053 100644 --- a/crates/bevy_render/src/render_resource/pipeline.rs +++ b/crates/bevy_render/src/render_resource/pipeline.rs @@ -110,8 +110,8 @@ pub struct VertexState { /// The compiled shader module for this stage. pub shader: Handle, pub shader_defs: Vec, - /// The name of the entry point in the compiled shader. There must be a function that returns - /// void with this name in the shader. + /// The name of the entry point in the compiled shader. There must be a + /// function with this name in the shader. pub entry_point: Cow<'static, str>, /// The format of any vertex buffers used with this pipeline. pub buffers: Vec, @@ -134,8 +134,8 @@ pub struct FragmentState { /// The compiled shader module for this stage. pub shader: Handle, pub shader_defs: Vec, - /// The name of the entry point in the compiled shader. There must be a function that returns - /// void with this name in the shader. + /// The name of the entry point in the compiled shader. There must be a + /// function with this name in the shader. pub entry_point: Cow<'static, str>, /// The color state of the render targets. pub targets: Vec,