mirror of
https://github.com/gfx-rs/wgpu.git
synced 2026-04-22 03:02:01 -04:00
Fix documentation claiming shader entry points must return void (#2911)
This commit is contained in:
@@ -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>,
|
||||
}
|
||||
|
||||
|
||||
@@ -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,
|
||||
}
|
||||
|
||||
|
||||
@@ -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<ColorTargetState>],
|
||||
@@ -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,
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user