rsdSampler.h revision a36c50a6ab87f4c9049318d4c6c8ec7b0a1e6e12
17f126c78a107257090c6675ea40ffac41516a9dcAlex Sakhartchouk/*
27f126c78a107257090c6675ea40ffac41516a9dcAlex Sakhartchouk * Copyright (C) 2011 The Android Open Source Project
37f126c78a107257090c6675ea40ffac41516a9dcAlex Sakhartchouk *
47f126c78a107257090c6675ea40ffac41516a9dcAlex Sakhartchouk * Licensed under the Apache License, Version 2.0 (the "License");
57f126c78a107257090c6675ea40ffac41516a9dcAlex Sakhartchouk * you may not use this file except in compliance with the License.
67f126c78a107257090c6675ea40ffac41516a9dcAlex Sakhartchouk * You may obtain a copy of the License at
77f126c78a107257090c6675ea40ffac41516a9dcAlex Sakhartchouk *
87f126c78a107257090c6675ea40ffac41516a9dcAlex Sakhartchouk *      http://www.apache.org/licenses/LICENSE-2.0
97f126c78a107257090c6675ea40ffac41516a9dcAlex Sakhartchouk *
107f126c78a107257090c6675ea40ffac41516a9dcAlex Sakhartchouk * Unless required by applicable law or agreed to in writing, software
117f126c78a107257090c6675ea40ffac41516a9dcAlex Sakhartchouk * distributed under the License is distributed on an "AS IS" BASIS,
127f126c78a107257090c6675ea40ffac41516a9dcAlex Sakhartchouk * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
137f126c78a107257090c6675ea40ffac41516a9dcAlex Sakhartchouk * See the License for the specific language governing permissions and
147f126c78a107257090c6675ea40ffac41516a9dcAlex Sakhartchouk * limitations under the License.
157f126c78a107257090c6675ea40ffac41516a9dcAlex Sakhartchouk */
167f126c78a107257090c6675ea40ffac41516a9dcAlex Sakhartchouk
177f126c78a107257090c6675ea40ffac41516a9dcAlex Sakhartchouk#ifndef RSD_SAMPLER_H
187f126c78a107257090c6675ea40ffac41516a9dcAlex Sakhartchouk#define RSD_SAMPLER_H
197f126c78a107257090c6675ea40ffac41516a9dcAlex Sakhartchouk
207f126c78a107257090c6675ea40ffac41516a9dcAlex Sakhartchouk#include <rs_hal.h>
217f126c78a107257090c6675ea40ffac41516a9dcAlex Sakhartchouk
227f126c78a107257090c6675ea40ffac41516a9dcAlex Sakhartchouk
237f126c78a107257090c6675ea40ffac41516a9dcAlex Sakhartchoukbool rsdSamplerInit(const android::renderscript::Context *rsc,
247f126c78a107257090c6675ea40ffac41516a9dcAlex Sakhartchouk                    const android::renderscript::Sampler *);
257f126c78a107257090c6675ea40ffac41516a9dcAlex Sakhartchouk
267f126c78a107257090c6675ea40ffac41516a9dcAlex Sakhartchoukvoid rsdSamplerDestroy(const android::renderscript::Context *rsc,
277f126c78a107257090c6675ea40ffac41516a9dcAlex Sakhartchouk                       const android::renderscript::Sampler *);
287f126c78a107257090c6675ea40ffac41516a9dcAlex Sakhartchouk
29a36c50a6ab87f4c9049318d4c6c8ec7b0a1e6e12Jason Samsvoid rsdSamplerUpdateCachedObject(const android::renderscript::Context *rsc,
30a36c50a6ab87f4c9049318d4c6c8ec7b0a1e6e12Jason Sams                                  const android::renderscript::Sampler *,
31a36c50a6ab87f4c9049318d4c6c8ec7b0a1e6e12Jason Sams                                  android::renderscript::rs_sampler *obj);
327f126c78a107257090c6675ea40ffac41516a9dcAlex Sakhartchouk
337f126c78a107257090c6675ea40ffac41516a9dcAlex Sakhartchouk#endif // RSD_SAMPLER_H
34