1// Copyright (C) 2009 The Android Open Source Project
2//
3// Licensed under the Apache License, Version 2.0 (the "License");
4// you may not use this file except in compliance with the License.
5// You may obtain a copy of the License at
6//
7//      http://www.apache.org/licenses/LICENSE-2.0
8//
9// Unless required by applicable law or agreed to in writing, software
10// distributed under the License is distributed on an "AS IS" BASIS,
11// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12// See the License for the specific language governing permissions and
13// limitations under the License.
14
15#pragma version(1)
16
17#pragma rs java_package_name(com.android.perftest)
18
19typedef struct VertexShaderConstants_s {
20    rs_matrix4x4 model;
21    rs_matrix4x4 proj;
22    float4 light0_Posision;
23    float light0_Diffuse;
24    float light0_Specular;
25    float light0_CosinePower;
26
27    float4 light1_Posision;
28    float light1_Diffuse;
29    float light1_Specular;
30    float light1_CosinePower;
31} VertexShaderConstants;
32
33typedef struct VertexShaderConstants3_s {
34    rs_matrix4x4 model;
35    rs_matrix4x4 proj;
36    float time;
37} VertexShaderConstants3;
38
39
40typedef struct FragentShaderConstants_s {
41    float4 light0_DiffuseColor;
42    float4 light0_SpecularColor;
43
44    float4 light1_DiffuseColor;
45    float4 light1_SpecularColor;
46} FragentShaderConstants;
47
48typedef struct FragentShaderConstants2_s {
49    float4 light_DiffuseColor[2];
50    float4 light_SpecularColor[2];
51} FragentShaderConstants2;
52
53typedef struct FragentShaderConstants3_s {
54    float4 light0_DiffuseColor;
55    float4 light0_SpecularColor;
56    float4 light0_Posision;
57    float light0_Diffuse;
58    float light0_Specular;
59    float light0_CosinePower;
60
61    float4 light1_DiffuseColor;
62    float4 light1_SpecularColor;
63    float4 light1_Posision;
64    float light1_Diffuse;
65    float light1_Specular;
66    float light1_CosinePower;
67} FragentShaderConstants3;
68
69typedef struct VertexShaderInputs_s {
70    float4 position;
71    float3 normal;
72    float2 texture0;
73} VertexShaderInputs;
74
75