HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
RV_Utils.h
Go to the documentation of this file.
1 /*
2  * PROPRIETARY INFORMATION. This software is proprietary to
3  * Side Effects Software Inc., and is not to be reproduced,
4  * transmitted, or disclosed in any way without written permission.
5  *
6  * NAME: RV_Utils.h ( RV Library, C++)
7  *
8  * COMMENTS:
9  * Utility functions for RV.
10  */
11 #ifndef RV_Utils_h
12 #define RV_Utils_h
13 
14 #include "RV_API.h"
15 
16 #include <UT/UT_Vector3.h>
17 #include <UT/UT_Matrix4.h>
18 #include <UT/UT_UniquePtr.h>
19 #include <SYS/SYS_Types.h>
20 
21 class RV_Render;
22 class RV_VKImage;
23 
25 
26 namespace RV_Utils
27 {
28 /// Returns an 8b RGBA 64x64 texture with 0-1 random values in all comps.
30  unsigned int seed,
31  bool interp,
32  int size = 64);
33 /// Returns an 8b RGBA size^3 3D texture with 0-1 random values
35  unsigned int seed,
36  bool interp,
37  int size = 32);
38 /// Returns an 8b RGBA size^2 2D texture array of size 'num_layers'
40  unsigned int seed,
41  bool interp,
42  int num_layers,
43  int size = 64 );
44 /// Create a new 2D image from a 2D multisample image by increasing the
45 /// resolution of the 2D image to show all samples.
47  RV_VKImage *ms_image);
48 
49 };
50 
51 #endif
RV_API RV_VKImagePtr getRandomTextureArray(RV_Render *r, unsigned int seed, bool interp, int num_layers, int size=64)
Returns an 8b RGBA size^2 2D texture array of size 'num_layers'.
RV_API UT_UniquePtr< RV_VKImage > resolveMSTexture(RV_Render *r, RV_VKImage *ms_image)
std::unique_ptr< T, Deleter > UT_UniquePtr
A smart pointer for unique ownership of dynamically allocated objects.
Definition: UT_UniquePtr.h:39
#define RV_API
Definition: RV_API.h:10
GLsizeiptr size
Definition: glcorearb.h:664
UT_UniquePtr< RV_VKImage > RV_VKImagePtr
Definition: RV_Utils.h:22
RV_API RV_VKImagePtr getRandomTexture(RV_Render *r, unsigned int seed, bool interp, int size=64)
Returns an 8b RGBA 64x64 texture with 0-1 random values in all comps.
GLboolean r
Definition: glcorearb.h:1222
RV_API RV_VKImagePtr getRandomTexture3D(RV_Render *r, unsigned int seed, bool interp, int size=32)
Returns an 8b RGBA size^3 3D texture with 0-1 random values.