Changeset View
Changeset View
Standalone View
Standalone View
source/blender/python/gpu/gpu_py_shader.c
| Show First 20 Lines • Show All 564 Lines • ▼ Show 20 Lines | PyDoc_STRVAR( | ||||
| " The GLSL ``#version`` directive is automatically included at the top of shaders,\n" | " The GLSL ``#version`` directive is automatically included at the top of shaders,\n" | ||||
| " and set to 330. Some preprocessor directives are automatically added according to\n" | " and set to 330. Some preprocessor directives are automatically added according to\n" | ||||
| " the Operating System or availability: ``GPU_ATI``, ``GPU_NVIDIA`` and ``GPU_INTEL``.\n" | " the Operating System or availability: ``GPU_ATI``, ``GPU_NVIDIA`` and ``GPU_INTEL``.\n" | ||||
| "\n" | "\n" | ||||
| " The following extensions are enabled by default if supported by the GPU:\n" | " The following extensions are enabled by default if supported by the GPU:\n" | ||||
| " ``GL_ARB_texture_gather``, ``GL_ARB_texture_cube_map_array``\n" | " ``GL_ARB_texture_gather``, ``GL_ARB_texture_cube_map_array``\n" | ||||
| " and ``GL_ARB_shader_draw_parameters``.\n" | " and ``GL_ARB_shader_draw_parameters``.\n" | ||||
| "\n" | "\n" | ||||
| " To debug shaders, use the ``--debug-gpu-shaders`` command line option\n" | |||||
| " to see full GLSL shader compilation and linking errors.\n" | |||||
| "\n" | |||||
| " For drawing user interface elements and gizmos, use\n" | " For drawing user interface elements and gizmos, use\n" | ||||
| " ``fragOutput = blender_srgb_to_framebuffer_space(fragOutput)``\n" | " ``fragOutput = blender_srgb_to_framebuffer_space(fragOutput)``\n" | ||||
| " to transform the output sRGB colors to the frame-buffer color-space.\n" | " to transform the output sRGB colors to the frame-buffer color-space.\n" | ||||
| "\n" | "\n" | ||||
| " :param vertexcode: Vertex shader code.\n" | " :param vertexcode: Vertex shader code.\n" | ||||
| " :type vertexcode: str\n" | " :type vertexcode: str\n" | ||||
| " :param fragcode: Fragment shader code.\n" | " :param fragcode: Fragment shader code.\n" | ||||
| " :type value: str\n" | " :type value: str\n" | ||||
| ▲ Show 20 Lines • Show All 192 Lines • Show Last 20 Lines | |||||