1 group PrismLoaderGlue; 2 3 glue(shaderName,samplerInit,paramInit,maxTexCoordIndex,isPixcoordUsed) ::= << 4 /* 5 * Copyright (c) 2009, 2013, Oracle and/or its affiliates. All rights reserved. 6 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 7 * 8 * This code is free software; you can redistribute it and/or modify it 9 * under the terms of the GNU General Public License version 2 only, as 10 * published by the Free Software Foundation. Oracle designates this 11 * particular file as subject to the "Classpath" exception as provided 12 * by Oracle in the LICENSE file that accompanied this code. 13 * 14 * This code is distributed in the hope that it will be useful, but WITHOUT 15 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 16 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 17 * version 2 for more details (a copy is included in the LICENSE file that 18 * accompanied this code). 19 * 20 * You should have received a copy of the GNU General Public License version 21 * 2 along with this work; if not, write to the Free Software Foundation, 22 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 23 * 24 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 25 * or visit www.oracle.com if you need additional information or have any 26 * questions. 27 */ 28 29 /* 30 * This file was generated by JSLC -- DO NOT EDIT MANUALLY! 31 */ 32 33 package com.sun.prism.shader; 34 35 import java.io.InputStream; 36 import java.util.HashMap; 37 import com.sun.prism.ps.Shader; 38 import com.sun.prism.ps.ShaderFactory; 39 40 public class $shaderName$_Loader { 41 42 private $shaderName$_Loader() { 43 } 44 45 public static Shader loadShader(ShaderFactory factory, 46 InputStream pixelShaderCode) 47 { 48 HashMap<String, Integer> samplers = new HashMap<String, Integer>(); 49 $samplerInit$ 50 HashMap<String, Integer> params = new HashMap<String, Integer>(); 51 $paramInit$ 52 return factory.createShader(pixelShaderCode, samplers, params, 53 $maxTexCoordIndex$, 54 $isPixcoordUsed$, true); 55 } 56 } 57 58 >>