IT. Expert System.

Android Reference

Program


android.renderscript

Class Program

  • Direct Known Subclasses:
    ProgramFragment, ProgramVertex


    public class Program
    extends BaseObj
    Program is a base class for all the objects that modify various stages of the graphics pipeline
    • Method Detail

      • getConstantCount

        public int getConstantCount()
        Program object can have zero or more constant allocations associated with it. This method returns the total count.
        Returns:
        number of constant input types
      • getConstant

        public Type getConstant(int slot)
        Returns the type of the constant buffer used in the program object. It could be used to query internal elements or create an allocation to store constant data.
        Parameters:
        slot - index of the constant input type to return
        Returns:
        constant input type
      • getTextureCount

        public int getTextureCount()
        Returns the number of textures used in this program object
        Returns:
        number of texture inputs
      • getTextureType

        public Program.TextureType getTextureType(int slot)
        Returns the type of texture at a given slot. e.g. 2D or Cube
        Parameters:
        slot - index of the texture input
        Returns:
        texture input type
      • getTextureName

        public String getTextureName(int slot)
        Returns the name of the texture input at a given slot. e.g. tex0, diffuse, spec
        Parameters:
        slot - index of the texture input
        Returns:
        texture input name
      • bindConstants

        public void bindConstants(Allocation a,
                         int slot)
        Binds a constant buffer to be used as uniform inputs to the program
        Parameters:
        a - allocation containing uniform data
        slot - index within the program's list of constant buffer allocations
      • bindSampler

        public void bindSampler(Sampler vs,
                       int slot)
                         throws IllegalArgumentException
        Binds an object that describes how a texture at the corresponding location is sampled
        Parameters:
        vs - sampler for a corresponding texture
        slot - index within the program's list of textures to use the sampler on
        Throws:
        IllegalArgumentException


Content

Android Reference

Java basics

Java Enterprise Edition (EE)

Java Standard Edition (SE)

SQL

HTML

PHP

CSS

Java Script

MYSQL

JQUERY

VBS

REGEX

C

C++

C#

Design patterns

RFC (standard status)

RFC (proposed standard status)

RFC (draft standard status)

RFC (informational status)

RFC (experimental status)

RFC (best current practice status)

RFC (historic status)

RFC (unknown status)

IT dictionary

License.
All information of this service is derived from the free sources and is provided solely in the form of quotations. This service provides information and interfaces solely for the familiarization (not ownership) and under the "as is" condition.
Copyright 2016 © ELTASK.COM. All rights reserved.
Site is optimized for mobile devices.
Downloads: 366 / 158855700. Delta: 0.03483 с