• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    公众号

C# WebGLProgram类代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了C#中WebGLProgram的典型用法代码示例。如果您正苦于以下问题:C# WebGLProgram类的具体用法?C# WebGLProgram怎么用?C# WebGLProgram使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。



WebGLProgram类属于命名空间,在下文中一共展示了WebGLProgram类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的C#代码示例。

示例1: GetUniformLocation

 /// <summary>
 /// Returns a WebGLUniformLocation object for the location of a uniform variable within a WebGLProgram object.
 ///
 /// Errors:
 ///     gl.INVALID_VALUE        If program is not generated by WebGL.
 ///
 ///     gl.INVALID_OPERATION    If program is not a program object.
 ///                             if program isn't successfully linked.
 /// </summary>
 /// <param name="program">The program object to query.</param>
 /// <param name="name">A string containing the name of the uniform variable. </param>
 /// <returns>The WebGLUniformLocation for the name. Returns null if a WebGL error occurs or if name starts with a reserved WebGL prefix.</returns>
 public virtual WebGLUniformLocation GetUniformLocation(WebGLProgram program, string name)
 {
     return null;
 }
开发者ID:configit-open-source,项目名称:Frameworks,代码行数:16,代码来源:RenderingContextMethods.cs


示例2: isProgram

 public bool isProgram(WebGLProgram program) { return default(bool); }
开发者ID:fjgandrade,项目名称:sharpkit,代码行数:1,代码来源:WebGLRenderingContext.cs


示例3: useProgram

 public void useProgram(WebGLProgram program) { }
开发者ID:fjgandrade,项目名称:sharpkit,代码行数:1,代码来源:WebGLRenderingContext.cs


示例4: getProgramParameter

 public object getProgramParameter(WebGLProgram program, int pname) { return default(object); }
开发者ID:fjgandrade,项目名称:sharpkit,代码行数:1,代码来源:WebGLRenderingContext.cs


示例5: getUniform

 public object getUniform(WebGLProgram program, WebGLUniformLocation location) { return default(object); }
开发者ID:fjgandrade,项目名称:sharpkit,代码行数:1,代码来源:WebGLRenderingContext.cs


示例6: getActiveAttrib

 public WebGLActiveInfo getActiveAttrib(WebGLProgram program, int index) { return default(WebGLActiveInfo); }
开发者ID:fjgandrade,项目名称:sharpkit,代码行数:1,代码来源:WebGLRenderingContext.cs


示例7: getAttachedShaders

 public WebGLObjectArray getAttachedShaders(WebGLProgram program) { return default(WebGLObjectArray); }
开发者ID:fjgandrade,项目名称:sharpkit,代码行数:1,代码来源:WebGLRenderingContext.cs


示例8: BindAttribLocation

 /// <summary>
 /// Binds a generic vertex index to a user-defined attribute variable.
 /// More than one name can be bound to the same vertex index, but multiple indexes cannot be bound to the same name.
 /// If name is a matrix attribute, then index points to the first column of the matrix. Additional matrix columns are automatically bound to index+1, index+2, and so forth based on matrix variable (mat2,mat3,mat4).
 ///
 /// Errors:
 ///     gl.INVALID_VALUE        If index is greater than or equal to gl.MAX_VERTEX_ATTRIBS.
 ///     gl.INVALID_VALUE        If program is not generated by WebGL.
 ///     gl.INVALID_OPERATION    If name starts with the reserved prefix gl_.
 ///     gl.INVALID_OPERATION    If program isn't a program object.
 /// </summary>
 /// <param name="program">Program object to bind. </param>
 /// <param name="index">The index of the generic vertex to bind. </param>
 /// <param name="name">me of the user variable to a bind to the generic vertex index.</param>
 public virtual void BindAttribLocation(WebGLProgram program, int index, string name) { }
开发者ID:configit-open-source,项目名称:Frameworks,代码行数:15,代码来源:RenderingContextMethods.cs


示例9: DetachShader

 /// <summary>
 /// Detach a shader object from a program object.
 /// If the shader is flagged for deletion by deleteShader, it's deleted after it's removed.
 /// </summary>
 /// <param name="program">The program object that contains the shader to detach. </param>
 /// <param name="shader">The shader to detach.</param>
 public virtual void DetachShader(WebGLProgram program, WebGLShader shader) { }
开发者ID:configit-open-source,项目名称:Frameworks,代码行数:7,代码来源:RenderingContextMethods.cs


示例10: ValidateProgram

 /// <summary>
 /// Returns whether a given program can run in the current WebGL state.
 /// A program is considered invalid if it hasn't successfully linked, or any two active samplers in the program are different types, but refer to the same texture image unit.
 /// This method is used in conjunction with getProgramParameter called with gl.VALIDATE_STATUS to test for a valid program.
 /// </summary>
 /// <param name="program">The program to validate.</param>
 public virtual void ValidateProgram(WebGLProgram program) { }
开发者ID:configit-open-source,项目名称:Frameworks,代码行数:7,代码来源:RenderingContextMethods.cs


示例11: DeleteProgram

 /// <summary>
 /// Flags a specific WebGLProgram object for deletion if currently active. It will be deleted when it is no longer being used. Any shader objects associated with the program will be detached. They will be deleted if they were already flagged for deletion.
 /// </summary>
 /// <param name="program">The program to be deleted.</param>
 public virtual void DeleteProgram(WebGLProgram program) { }
开发者ID:configit-open-source,项目名称:Frameworks,代码行数:5,代码来源:RenderingContextMethods.cs


示例12: UseProgram

 /// <summary>
 /// Set the program object to use for rendering.
 /// Program objects can be used for multiple rendering contexts.
 ///
 /// Errors:
 ///     gl.INVALID_OPERATION    If program hasn't been linked.
 ///                             If program isn't a WebGLProgram object, but is a WebGL generated object.
 ///
 ///     gl.INVALID_VALUE        If program isn't a WebGL generated object.
 /// </summary>
 /// <param name="program">The program object.</param>
 public virtual void UseProgram(WebGLProgram program) { }
开发者ID:configit-open-source,项目名称:Frameworks,代码行数:12,代码来源:RenderingContextMethods.cs


示例13: LinkProgram

 /// <summary>
 /// Links an attached vertex shader and an attached fragment shader to a program so it can be used by the graphics processing unit (GPU).
 /// If a link operation fails, any info associated with a previous link operation of program is lost.
 ///
 /// Errors:
 ///     gl.INVALID_VALUE         If program isn't a WebGL object type.
 ///     gl.INVALID_OPERATION    If program isn't a program object.
 /// </summary>
 /// <param name="program">The program object to link.</param>
 public virtual void LinkProgram(WebGLProgram program) { }
开发者ID:configit-open-source,项目名称:Frameworks,代码行数:10,代码来源:RenderingContextMethods.cs


示例14: IsProgram

 /// <summary>
 /// Gets state of WebGL program object. Returns true if program object is valid, false otherwise.
 /// </summary>
 /// <param name="program">The program object to query.</param>
 /// <returns>Returns true if program is valid, false otherwise.</returns>
 public virtual bool IsProgram(WebGLProgram program)
 {
     return false;
 }
开发者ID:configit-open-source,项目名称:Frameworks,代码行数:9,代码来源:RenderingContextMethods.cs


示例15: deleteProgram

 public void deleteProgram(WebGLProgram program) { }
开发者ID:fjgandrade,项目名称:sharpkit,代码行数:1,代码来源:WebGLRenderingContext.cs


示例16: GetActiveAttrib

 /// <summary>
 /// Returns an WebGLActiveInfo object containing the size, type, and name of a vertex attribute at a specific index position in a program object.
 ///
 /// Errors:
 ///     gl.INVALID_VALUE        The value of program is not generated by WebGL.
 ///                             The value of index is greater than or equal to the number of active attribute variables in program.
 ///
 ///     gl.INVALID_OPERATION    The value program is not a valid program object.
 /// </summary>
 /// <param name="program">The program object containing the vertex attribute of interest.</param>
 /// <param name="index">The index of the attribute. Index is zero based. Passing 0 selects the first attribute, while gl.ACTIVE_ATTRIBUTES - 1 specifies the last attribute.</param>
 /// <returns>A WebGLActiveInfo object.</returns>
 public virtual WebGLActiveInfo GetActiveAttrib(WebGLProgram program, int index)
 {
     return null;
 }
开发者ID:configit-open-source,项目名称:Frameworks,代码行数:16,代码来源:RenderingContextMethods.cs


示例17: detachShader

 public void detachShader(WebGLProgram program, WebGLShader shader) { }
开发者ID:fjgandrade,项目名称:sharpkit,代码行数:1,代码来源:WebGLRenderingContext.cs


示例18: GetActiveUniform

 /// <summary>
 /// Returns an WebGLActiveInfo object containing the size, type, and name of a uniform attribute at a specific index position in a program object.
 ///
 /// Errors:
 ///     gl.INVALID_VALUE        The value of program is not generated by WebGL.
 ///                             The value of index is greater than or equal to the number of active uniforms in program.
 ///
 ///     gl.INVALID_OPERATION    The program is not a valid program object.
 /// </summary>
 /// <param name="program">The program object containing the uniform attribute of interest.</param>
 /// <param name="index">The index of the uniform. The index is zero based. Passing 0 selects the first uniform, while ACTIVE_ATTRIBUTES - 1 specifies the last uniform.</param>
 /// <returns>A WebGLActiveInfo object.</returns>
 public virtual WebGLActiveInfo GetActiveUniform(WebGLProgram program, int index)
 {
     return null;
 }
开发者ID:configit-open-source,项目名称:Frameworks,代码行数:16,代码来源:RenderingContextMethods.cs


示例19: getActiveUniform

 public WebGLActiveInfo getActiveUniform(WebGLProgram program, int index) { return default(WebGLActiveInfo); }
开发者ID:fjgandrade,项目名称:sharpkit,代码行数:1,代码来源:WebGLRenderingContext.cs


示例20: FetAttachedShaders

 /// <summary>
 /// Returns a list of WebGLShaders bound to a WebGLProgram.
 /// </summary>
 /// <param name="program">The WebGLProgram object from which to get list of WebGLShaders</param>
 /// <returns>Array of the WebGLShaders that are bound to program.</returns>
 public virtual WebGLShader[] FetAttachedShaders(WebGLProgram program)
 {
     return null;
 }
开发者ID:configit-open-source,项目名称:Frameworks,代码行数:9,代码来源:RenderingContextMethods.cs



注:本文中的WebGLProgram类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
C# WebGLRenderingContext类代码示例发布时间:2022-05-24
下一篇:
C# WebExceptionStatus类代码示例发布时间:2022-05-24
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap