Panda3D
Functions
shader.cxx File Reference

PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University. More...

#include "pandabase.h"
#include "shader.h"
#include "preparedGraphicsObjects.h"
#include "virtualFileSystem.h"
#include "config_putil.h"
#include "bamCache.h"
#include "string_utils.h"

Go to the source code of this file.

Functions

 PT (Shader) Shader
 Loads the shader with the given filename. More...
 
 PT (AsyncFuture) Shader
 Indicates that the shader should be enqueued to be prepared in the indicated prepared_objects at the beginning of the next frame. More...
 

Detailed Description

PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.

All rights reserved.

All use of this software is subject to the terms of the revised BSD license. You should have received a copy of this license along with this source code in a file named "LICENSE."

Author
jyelon
Date
2005-09-01
Author
fperazzi, PandaSE
Date
2010-04-06
Author
fperazzi, PandaSE
Date
2010-04-29

Definition in file shader.cxx.

Function Documentation

◆ PT() [1/2]

PT ( Shader  )

Loads the shader with the given filename.

Loads the compute shader from the given string.

Loads the shader, using the strings as shader bodies.

Loads the shader, using the string as shader body.

Loads a compute shader.

This variant of Shader::load loads all shader programs separately.

Definition at line 3267 of file shader.cxx.

◆ PT() [2/2]

PT ( AsyncFuture  )

Indicates that the shader should be enqueued to be prepared in the indicated prepared_objects at the beginning of the next frame.

This will ensure the texture is already loaded into texture memory if it is expected to be rendered soon.

Use this function instead of prepare_now() to preload textures from a user interface standpoint.

Definition at line 3650 of file shader.cxx.