15bd8deadSopenharmony_ciName 25bd8deadSopenharmony_ci 35bd8deadSopenharmony_ci SGIX_depth_texture 45bd8deadSopenharmony_ci 55bd8deadSopenharmony_ciName Strings 65bd8deadSopenharmony_ci 75bd8deadSopenharmony_ci GL_SGIX_depth_texture 85bd8deadSopenharmony_ci 95bd8deadSopenharmony_ciVersion 105bd8deadSopenharmony_ci 115bd8deadSopenharmony_ci $Date: 1997/02/26 03:36:29 $ $Revision: 1.5 $ 125bd8deadSopenharmony_ci 135bd8deadSopenharmony_ciNumber 145bd8deadSopenharmony_ci 155bd8deadSopenharmony_ci 63 165bd8deadSopenharmony_ci 175bd8deadSopenharmony_ciDependencies 185bd8deadSopenharmony_ci 195bd8deadSopenharmony_ci EXT_texture is required 205bd8deadSopenharmony_ci EXT_subtexture affects the definition of this extension 215bd8deadSopenharmony_ci EXT_copy_texture affects the definition of this extension 225bd8deadSopenharmony_ci 235bd8deadSopenharmony_ciOverview 245bd8deadSopenharmony_ci 255bd8deadSopenharmony_ci This extension defines a new depth texture format. An important 265bd8deadSopenharmony_ci application of depth texture images is shadow casting, but separating 275bd8deadSopenharmony_ci this from the shadow extension allows for the potential use of depth 285bd8deadSopenharmony_ci textures in other applications such as image-based rendering or 295bd8deadSopenharmony_ci displacement mapping. This extension does not define new depth-texture 305bd8deadSopenharmony_ci environment functions, such as filtering or applying the depth values 315bd8deadSopenharmony_ci computed from a texture, but leaves this to other extensions, such as 325bd8deadSopenharmony_ci the shadow extension. 335bd8deadSopenharmony_ci 345bd8deadSopenharmony_ciNew Procedures and Functions 355bd8deadSopenharmony_ci 365bd8deadSopenharmony_ci None 375bd8deadSopenharmony_ci 385bd8deadSopenharmony_ciNew Tokens 395bd8deadSopenharmony_ci 405bd8deadSopenharmony_ci Accepted by the <components> parameters of TexImage1D and TexImage2D, 415bd8deadSopenharmony_ci and by the <internalformat> parameters of TexImage3DEXT, 425bd8deadSopenharmony_ci CopyTexImage1DEXT, and CopyTexImage2DEXT: 435bd8deadSopenharmony_ci 445bd8deadSopenharmony_ci DEPTH_COMPONENT16_SGIX 0x81A5 455bd8deadSopenharmony_ci DEPTH_COMPONENT24_SGIX 0x81A6 465bd8deadSopenharmony_ci DEPTH_COMPONENT32_SGIX 0x81A7 475bd8deadSopenharmony_ci 485bd8deadSopenharmony_ci 495bd8deadSopenharmony_ciAdditions to Chapter 2 of the 1.0 Specification (OpenGL Operation) 505bd8deadSopenharmony_ci 515bd8deadSopenharmony_ci None 525bd8deadSopenharmony_ci 535bd8deadSopenharmony_ciAdditions to Chapter 3 of the 1.0 Specification (Rasterization) 545bd8deadSopenharmony_ci 555bd8deadSopenharmony_ci XXX - lots 565bd8deadSopenharmony_ci 575bd8deadSopenharmony_ci Notes: 585bd8deadSopenharmony_ci 595bd8deadSopenharmony_ci * Defines DEPTH_COMPONENT as a new base internal format for 605bd8deadSopenharmony_ci textures. Defines 16, 24, and 32 bit specific internal formats 615bd8deadSopenharmony_ci for texture. Just as for the specific color internal formats, 625bd8deadSopenharmony_ci an implementation can choose whether to implement them or not. 635bd8deadSopenharmony_ci 645bd8deadSopenharmony_ci * Texture commands that accept images from memory now allow the 655bd8deadSopenharmony_ci internal format to be DEPTH_COMPONENT or DEPTH_COMPONENT*_SGIX 665bd8deadSopenharmony_ci when the format of the image data is DEPTH_COMPONENT. Depth, not 675bd8deadSopenharmony_ci color pixel transfer operations are applied to depth images. 685bd8deadSopenharmony_ci 695bd8deadSopenharmony_ci * Texture commands that accept images from the framebuffer now take 705bd8deadSopenharmony_ci their data from the depth buffer when the internal format is 715bd8deadSopenharmony_ci DEPTH_COMPONENT or DEPTH_COMPONENT*_SGIX, or when no internal 725bd8deadSopenharmony_ci format is specified, and the internal format of the target texture 735bd8deadSopenharmony_ci is DEPTH_COMPONENT or DEPTH_COMPONENT*_SGIX. 745bd8deadSopenharmony_ci 755bd8deadSopenharmony_ciAdditions to Chapter 4 of the 1.0 Specification (Per-Fragment Operations 765bd8deadSopenharmony_ciand the Frame Buffer) 775bd8deadSopenharmony_ci 785bd8deadSopenharmony_ci None 795bd8deadSopenharmony_ci 805bd8deadSopenharmony_ciAdditions to Chapter 5 of the 1.0 Specification (Special Functions) 815bd8deadSopenharmony_ci 825bd8deadSopenharmony_ci None 835bd8deadSopenharmony_ci 845bd8deadSopenharmony_ciAdditions to Chapter 6 of the 1.0 Specification (State and State Requests) 855bd8deadSopenharmony_ci 865bd8deadSopenharmony_ci None 875bd8deadSopenharmony_ci 885bd8deadSopenharmony_ciAdditions to the GLX Specification 895bd8deadSopenharmony_ci 905bd8deadSopenharmony_ci None 915bd8deadSopenharmony_ci 925bd8deadSopenharmony_ciDependencies on EXT_texture 935bd8deadSopenharmony_ci 945bd8deadSopenharmony_ci EXT_texture is required. 955bd8deadSopenharmony_ci 965bd8deadSopenharmony_ciDependencies on EXT_texture3D 975bd8deadSopenharmony_ci 985bd8deadSopenharmony_ci EXT_texture3D is not required, but if it is not supported, the 995bd8deadSopenharmony_ci implementation must compute the R texture coordinate as if it were. 1005bd8deadSopenharmony_ci If EXT_texture3D is not supported, references to TexImage3DEXT and 1015bd8deadSopenharmony_ci TexSubImage3DEXT in this document are invalid and should be ignored. 1025bd8deadSopenharmony_ci 1035bd8deadSopenharmony_ciDependencies on EXT_subtexture 1045bd8deadSopenharmony_ci 1055bd8deadSopenharmony_ci If EXT_subtexture is not supported, references to TexSubImage1DEXT, 1065bd8deadSopenharmony_ci TexSubImage2DEXT, and TexSubImage3DEXT in this document are invalid and 1075bd8deadSopenharmony_ci should be ignored. If EXT_subtexture is supported, the operations of 1085bd8deadSopenharmony_ci these three commands are affected by this extension. 1095bd8deadSopenharmony_ci 1105bd8deadSopenharmony_ciDependencies on EXT_copy_texture 1115bd8deadSopenharmony_ci 1125bd8deadSopenharmony_ci If EXT_copy_texture is not supported, references to CopyTexImage1DEXT 1135bd8deadSopenharmony_ci and CopyTexImage2DEXT in this document are invalid and should be 1145bd8deadSopenharmony_ci ignored. If EXT_copy_texture is supported, the operations of these two 1155bd8deadSopenharmony_ci commands, and of CopyTexSubImage1DEXT, CopyTexSubImage2DEXT, and 1165bd8deadSopenharmony_ci CopyTexSubImage3DEXT are affected by this extension. 1175bd8deadSopenharmony_ci 1185bd8deadSopenharmony_ciErrors 1195bd8deadSopenharmony_ci 1205bd8deadSopenharmony_ci INVALID_OPERATION is generated if TexImage1D or TexImage2D parameter 1215bd8deadSopenharmony_ci <format> is DEPTH_COMPONENT and parameter <components> is not 1225bd8deadSopenharmony_ci DEPTH_COMPONENT, DEPTH_COMPONENT16_SGI, DEPTH_COMPONENT24_SGI, or 1235bd8deadSopenharmony_ci DEPTH_COMPONENT32_SGI. 1245bd8deadSopenharmony_ci 1255bd8deadSopenharmony_ci INVALID_OPERATION is generated if TexImage3DEXT parameter <format> is 1265bd8deadSopenharmony_ci DEPTH_COMPONENT and parameter <internalformat> is not 1275bd8deadSopenharmony_ci DEPTH_COMPONENT, DEPTH_COMPONENT16_SGI, DEPTH_COMPONENT24_SGI, or 1285bd8deadSopenharmony_ci DEPTH_COMPONENT32_SGI. 1295bd8deadSopenharmony_ci 1305bd8deadSopenharmony_ci INVALID_OPERATION is generated if CopyTexImage1DEXT or CopyTexImage2DEXT 1315bd8deadSopenharmony_ci parameter <internalformat> is DEPTH_COMPONENT, DEPTH_COMPONENT16_SGI, 1325bd8deadSopenharmony_ci DEPTH_COMPONENT24_SGI, or DEPTH_COMPONENT32_SGI, and there is no 1335bd8deadSopenharmony_ci depth buffer. 1345bd8deadSopenharmony_ci 1355bd8deadSopenharmony_ciNew State 1365bd8deadSopenharmony_ci 1375bd8deadSopenharmony_ci None 1385bd8deadSopenharmony_ci 1395bd8deadSopenharmony_ciNew Implementation Dependent State 1405bd8deadSopenharmony_ci 1415bd8deadSopenharmony_ci None 142