小编use*_*536的帖子

此着色器中的“uniform SamplerXX iChannel0..3”是什么?

我碰巧在着色器玩具上看到了这个着色器。

https://www.shadertoy.com/view/ldf3W8

我想知道什么:

uniform samplerXX iChannel0..3; 
Run Code Online (Sandbox Code Playgroud)

是?

我试图查看顶点着色器,但我没有在那里找到任何东西。

另外,如何将音频波转换为纹理?(这里正在进行)

opengl-es glsl

5
推荐指数
1
解决办法
4846
查看次数

@ViewScoped在每次回发时创建新实例

我有以下托管bean.但每次我回到同一个bean的帖子,即在调用updateFileList时.我得到了一个新的FileDAO实例.

我怎么能阻止这个?在托管bean中使用DAO是否安全,如果没有,我可以做出哪些更改来改善它.

@ManagedBean(name = "file")
@ViewScoped
public class FileController implements Serializable {

    private static final long serialVersionUID = 1L;

    private List<LoadFileLog> fileList = null;
    private Date selectedDate;
    FileDAO fileDAO;

    public FileController() {

        System.out.println(" In file Controller constructor");
        ServletContext servletContext = (ServletContext) FacesContext.getCurrentInstance().getExternalContext().getContext();
        ApplicationContext context = WebApplicationContextUtils.getRequiredWebApplicationContext(servletContext);
        fileDAO = (FileDAO) context.getBean("FileDAO");


    }


    public FileDAO getFileDAO() {
        return fileDAO;
    }





    public void setFileDAO(FileDAO fileDAO) {
        this.fileDAO = fileDAO;
    }





    public List<LoadFileLog> getFileList() {

        return fileList;

    }

    public Date getSelectedDate() {
        return selectedDate; …

jsf postback jsf-2 view-scope

2
推荐指数
1
解决办法
5353
查看次数

标签 统计

glsl ×1

jsf ×1

jsf-2 ×1

opengl-es ×1

postback ×1

view-scope ×1