rsdSampler.cpp 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. /*
  2. * Copyright (C) 2011 The Android Open Source Project
  3. *
  4. * Licensed under the Apache License, Version 2.0 (the "License");
  5. * you may not use this file except in compliance with the License.
  6. * You may obtain a copy of the License at
  7. *
  8. * http://www.apache.org/licenses/LICENSE-2.0
  9. *
  10. * Unless required by applicable law or agreed to in writing, software
  11. * distributed under the License is distributed on an "AS IS" BASIS,
  12. * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  13. * See the License for the specific language governing permissions and
  14. * limitations under the License.
  15. */
  16. #include "rsdCore.h"
  17. #include "rsdSampler.h"
  18. #include "rsContext.h"
  19. #include "rsSampler.h"
  20. #ifndef RS_COMPATIBILITY_LIB
  21. #include "rsProgramVertex.h"
  22. #include "rsProgramFragment.h"
  23. #include <GLES/gl.h>
  24. #include <GLES/glext.h>
  25. #endif
  26. using android::renderscript::Context;
  27. using android::renderscript::Sampler;
  28. using android::renderscript::rs_sampler;
  29. bool rsdSamplerInit(const Context *, const Sampler *s) {
  30. return true;
  31. }
  32. void rsdSamplerDestroy(const android::renderscript::Context *rsc,
  33. const android::renderscript::Sampler *s) {
  34. }
  35. void rsdSamplerUpdateCachedObject(const Context *rsc,
  36. const Sampler *alloc,
  37. rs_sampler *obj)
  38. {
  39. obj->p = alloc;
  40. #ifdef __LP64__
  41. obj->unused1 = nullptr;
  42. obj->unused2 = nullptr;
  43. obj->unused3 = nullptr;
  44. #endif
  45. }