diff --git a/wgpu-core/src/pipeline.rs b/wgpu-core/src/pipeline.rs index e235ca4706..f9d500178d 100644 --- a/wgpu-core/src/pipeline.rs +++ b/wgpu-core/src/pipeline.rs @@ -151,8 +151,8 @@ impl CreateShaderModuleError { pub struct ProgrammableStageDescriptor<'a> { /// The compiled shader module for this stage. pub module: ShaderModuleId, - /// 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<'a, str>, } diff --git a/wgpu-hal/src/lib.rs b/wgpu-hal/src/lib.rs index a343f111bb..f52c05ed34 100644 --- a/wgpu-hal/src/lib.rs +++ b/wgpu-hal/src/lib.rs @@ -969,8 +969,8 @@ pub struct ShaderModuleDescriptor<'a> { pub struct ProgrammableStage<'a, A: Api> { /// The compiled shader module for this stage. pub module: &'a A::ShaderModule, - /// 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: &'a str, } diff --git a/wgpu/src/lib.rs b/wgpu/src/lib.rs index 090d67c1f1..1e56f1572f 100644 --- a/wgpu/src/lib.rs +++ b/wgpu/src/lib.rs @@ -1468,8 +1468,8 @@ pub struct VertexBufferLayout<'a> { pub struct VertexState<'a> { /// The compiled shader module for this stage. pub module: &'a ShaderModule, - /// 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: &'a str, /// The format of any vertex buffers used with this pipeline. pub buffers: &'a [VertexBufferLayout<'a>], @@ -1485,8 +1485,8 @@ pub struct VertexState<'a> { pub struct FragmentState<'a> { /// The compiled shader module for this stage. pub module: &'a ShaderModule, - /// 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: &'a str, /// The color state of the render targets. pub targets: &'a [Option], @@ -1545,8 +1545,8 @@ pub struct ComputePipelineDescriptor<'a> { pub layout: Option<&'a PipelineLayout>, /// The compiled shader module for this stage. pub module: &'a ShaderModule, - /// 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 + /// and no return value in the shader. pub entry_point: &'a str, }