buildSrc/src/main/resources/com/sun/scenario/effect/compiler/backend/prism/PrismGlue.stg

Print this page


   1 group PrismGlue;
   2 
   3 glue(effectName,peerName,superClass,interfaceDecl,
   4      usercode,samplerLinear,samplerInit,
   5      paramInit,paramUpdate,isPixcoordUsed) ::= <<
   6 /*
   7  * Copyright (c) 2008, 2013, Oracle and/or its affiliates. All rights reserved.
   8  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
   9  *
  10  * This code is free software; you can redistribute it and/or modify it
  11  * under the terms of the GNU General Public License version 2 only, as
  12  * published by the Free Software Foundation.  Oracle designates this
  13  * particular file as subject to the "Classpath" exception as provided
  14  * by Oracle in the LICENSE file that accompanied this code.
  15  *
  16  * This code is distributed in the hope that it will be useful, but WITHOUT
  17  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
  18  * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
  19  * version 2 for more details (a copy is included in the LICENSE file that
  20  * accompanied this code).
  21  *
  22  * You should have received a copy of the GNU General Public License version
  23  * 2 along with this work; if not, write to the Free Software Foundation,


  29  */
  30 
  31 /*
  32  * This file was generated by JSLC -- DO NOT EDIT MANUALLY!
  33  */
  34 
  35 package com.sun.scenario.effect.impl.prism.ps;
  36 
  37 import java.nio.FloatBuffer;
  38 import java.nio.IntBuffer;
  39 import java.util.HashMap;
  40 import com.sun.prism.ps.Shader;
  41 import com.sun.scenario.effect.$effectName$;
  42 import com.sun.scenario.effect.Effect;
  43 import com.sun.scenario.effect.FilterContext;
  44 import com.sun.scenario.effect.impl.BufferUtil;
  45 import com.sun.scenario.effect.impl.Renderer;
  46 import com.sun.scenario.effect.impl.state.*;
  47 import com.sun.javafx.geom.Rectangle;
  48 
  49 public class PPS$peerName$Peer extends $superClass$ $interfaceDecl$ {
  50 
  51     public PPS$peerName$Peer(FilterContext fctx, Renderer r, String shaderName) {
  52         super(fctx, r, shaderName);
  53     }
  54 
  55     @Override
  56     protected final $effectName$ getEffect() {
  57         return ($effectName$)super.getEffect();
  58     }
  59 
  60     $usercode$
  61      
  62     @Override
  63     protected boolean isSamplerLinear(int i) {
  64         switch (i) {
  65         $samplerLinear$
  66         default:
  67             return false;
  68         }
  69     }
   1 group PrismGlue;
   2 
   3 glue(effectName,peerName,superClass,genericsDecl,interfaceDecl,
   4      usercode,samplerLinear,samplerInit,
   5      paramInit,paramUpdate,isPixcoordUsed) ::= <<
   6 /*
   7  * Copyright (c) 2008, 2013, Oracle and/or its affiliates. All rights reserved.
   8  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
   9  *
  10  * This code is free software; you can redistribute it and/or modify it
  11  * under the terms of the GNU General Public License version 2 only, as
  12  * published by the Free Software Foundation.  Oracle designates this
  13  * particular file as subject to the "Classpath" exception as provided
  14  * by Oracle in the LICENSE file that accompanied this code.
  15  *
  16  * This code is distributed in the hope that it will be useful, but WITHOUT
  17  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
  18  * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
  19  * version 2 for more details (a copy is included in the LICENSE file that
  20  * accompanied this code).
  21  *
  22  * You should have received a copy of the GNU General Public License version
  23  * 2 along with this work; if not, write to the Free Software Foundation,


  29  */
  30 
  31 /*
  32  * This file was generated by JSLC -- DO NOT EDIT MANUALLY!
  33  */
  34 
  35 package com.sun.scenario.effect.impl.prism.ps;
  36 
  37 import java.nio.FloatBuffer;
  38 import java.nio.IntBuffer;
  39 import java.util.HashMap;
  40 import com.sun.prism.ps.Shader;
  41 import com.sun.scenario.effect.$effectName$;
  42 import com.sun.scenario.effect.Effect;
  43 import com.sun.scenario.effect.FilterContext;
  44 import com.sun.scenario.effect.impl.BufferUtil;
  45 import com.sun.scenario.effect.impl.Renderer;
  46 import com.sun.scenario.effect.impl.state.*;
  47 import com.sun.javafx.geom.Rectangle;
  48 
  49 public class PPS$peerName$Peer extends $superClass$$genericsDecl$ $interfaceDecl$ {
  50 
  51     public PPS$peerName$Peer(FilterContext fctx, Renderer r, String shaderName) {
  52         super(fctx, r, shaderName);
  53     }
  54 
  55     @Override
  56     protected final $effectName$ getEffect() {
  57         return ($effectName$)super.getEffect();
  58     }
  59 
  60     $usercode$
  61      
  62     @Override
  63     protected boolean isSamplerLinear(int i) {
  64         switch (i) {
  65         $samplerLinear$
  66         default:
  67             return false;
  68         }
  69     }