@@ -2405,12 +2405,12 @@ for (int isArray = 0; isArray <= 1; isArray++)
2405
2405
for (int isMS = 0; isMS <= 1; isMS++) {
2406
2406
if (isMS)
2407
2407
{
2408
- if (shapeIndex != kStdlibShapeIndex2D )
2408
+ if (shapeIndex != kCoreModule_ShapeIndex2D )
2409
2409
continue;
2410
2410
}
2411
2411
if (isArray)
2412
2412
{
2413
- if (shapeIndex == kStdlibShapeIndex3D )
2413
+ if (shapeIndex == kCoreModule_ShapeIndex3D )
2414
2414
continue;
2415
2415
}
2416
2416
auto shapeTypeName = kTextureShapeTypeNames[shapeIndex];
@@ -3025,7 +3025,7 @@ extension _Texture<T,Shape,isArray,0,sampleCount,0,isShadow,isCombined,format>
3025
3025
{
3026
3026
//@hidden:
3027
3027
static const int isMS = 0;
3028
- static const int access = $(kStdlibResourceAccessReadOnly );
3028
+ static const int access = $(kCoreModule_ResourceAccessReadOnly );
3029
3029
//@public:
3030
3030
__glsl_extension(GL_EXT_samplerless_texture_functions)
3031
3031
[__readNone]
@@ -3258,7 +3258,7 @@ __generic<T, Shape: __ITextureShape, let isArray:int, let sampleCount:int, let i
3258
3258
extension _Texture<T,Shape,isArray,1,sampleCount,0,isShadow,isCombined,format>
3259
3259
{
3260
3260
//@hidden:
3261
- static const int access = $(kStdlibResourceAccessReadOnly );
3261
+ static const int access = $(kCoreModule_ResourceAccessReadOnly );
3262
3262
static const int isMS = 1;
3263
3263
//@public:
3264
3264
__glsl_extension(GL_EXT_samplerless_texture_functions)
@@ -3432,7 +3432,7 @@ extension _Texture<T,Shape,isArray,1,sampleCount,0,isShadow,isCombined,format>
3432
3432
3433
3433
// Load/Subscript for readwrite textures
3434
3434
${{{{
3435
- for (int access = kStdlibResourceAccessReadWrite ; access<=kStdlibResourceAccessRasterizerOrdered ; access++) {
3435
+ for (int access = kCoreModule_ResourceAccessReadWrite ; access <= kCoreModule_ResourceAccessRasterizerOrdered ; access++) {
3436
3436
const char* glslIntrinsic = "$cimageLoad($0, $1)$z";
3437
3437
const char* glslIntrinsicOffset = "$cimageLoad($0, ($1)+($2))$z";
3438
3438
const char* glslIntrinsicMS = "$cimageLoad($0, $1, $2)$z";
@@ -3748,7 +3748,7 @@ extension _Texture<T,Shape,isArray,0,sampleCount,$(access),isShadow, 0,format>
3748
3748
}
3749
3749
3750
3750
${{{{
3751
- if (access == kStdlibResourceAccessReadWrite ) {
3751
+ if (access == kCoreModule_ResourceAccessReadWrite ) {
3752
3752
}}}}
3753
3753
3754
3754
// RW MS textures.
@@ -3901,7 +3901,7 @@ extension _Texture<T,Shape,isArray,1,sampleCount,$(access),isShadow, 0,format>
3901
3901
}
3902
3902
3903
3903
${{{{
3904
- } // if (access == kStdlibResourceAccessReadWrite ) // for RW MS textures.
3904
+ } // if (access == kCoreModule_ResourceAccessReadWrite ) // for RW MS textures.
3905
3905
} // for (access).
3906
3906
}}}}
3907
3907
@@ -3983,13 +3983,13 @@ ${{{{
3983
3983
for (int isArray = 0; isArray<=1; isArray++)
3984
3984
for (int isMS = 0; isMS<=1; isMS++)
3985
3985
for (int isCombined = 0; isCombined<=1; isCombined++)
3986
- for (int access = kStdlibResourceAccessReadOnly ; access<=kStdlibResourceAccessFeedback ; access++) {
3987
- if (access != kStdlibResourceAccessReadOnly )
3986
+ for (int access = kCoreModule_ResourceAccessReadOnly ; access <= kCoreModule_ResourceAccessFeedback ; access++) {
3987
+ if (access != kCoreModule_ResourceAccessReadOnly )
3988
3988
{
3989
3989
// No RW Cube.
3990
- if (shape == kStdlibShapeIndexCube ) continue;
3990
+ if (shape == kCoreModule_ShapeIndexCube ) continue;
3991
3991
}
3992
- if (access == kStdlibResourceAccessFeedback )
3992
+ if (access == kCoreModule_ResourceAccessFeedback )
3993
3993
{
3994
3994
// Feedback only defined for Texture2D and Texture2DArray.
3995
3995
if (shape != 1) continue;
@@ -3999,14 +3999,14 @@ ${{{{
3999
3999
if (isMS)
4000
4000
{
4001
4001
// Only Texture2DMS.
4002
- if (shape != kStdlibShapeIndex2D )
4002
+ if (shape != kCoreModule_ShapeIndex2D )
4003
4003
continue;
4004
4004
// Only Texture2DMS or RWTexture2DMS.
4005
- if (access >= kStdlibShapeIndex3D )
4005
+ if (access >= kCoreModule_ShapeIndex3D )
4006
4006
continue;
4007
4007
}
4008
4008
// No 3D Array.
4009
- if (shape == kStdlibShapeIndex3D && isArray == 1)
4009
+ if (shape == kCoreModule_ShapeIndex3D && isArray == 1)
4010
4010
continue;
4011
4011
const char* textureTypeName = isCombined ? "Sampler" : "Texture";
4012
4012
}}}}
@@ -9924,7 +9924,7 @@ __generic<T : __BuiltinIntegerType>
9924
9924
[require(cpp_cuda_glsl_hlsl_metal_spirv_wgsl, sm_4_0_version)]
9925
9925
T max(T x, T y)
9926
9926
{
9927
- // Note: a stdlib implementation of `max` (or `min`) will require splitting
9927
+ // Note: a core module implementation of `max` (or `min`) will require splitting
9928
9928
// floating-point and integer cases apart, because the floating-point
9929
9929
// version needs to correctly handle the case where one of the inputs
9930
9930
// is not-a-number.
@@ -15159,7 +15159,7 @@ struct BuiltInTriangleIntersectionAttributes
15159
15159
// 10.2 Shaders
15160
15160
15161
15161
// Right now new shader stages need to be added directly to the compiler
15162
- // implementation, rather than being something that can be declared in the stdlib .
15162
+ // implementation, rather than being something that can be declared in the core module .
15163
15163
15164
15164
// 10.3 - Intrinsics
15165
15165
@@ -16058,7 +16058,7 @@ struct SAMPLER_FEEDBACK_MIP_REGION_USED : __BuiltinSamplerFeedbackType {};
16058
16058
// All of these objects are write-only resources that point to a special kind of unordered access view meant for sampler feedback.
16059
16059
16060
16060
__generic<T:__BuiltinSamplerFeedbackType>
16061
- extension _Texture<T,__Shape2D, 0, 0, 0, $(kStdlibResourceAccessFeedback ), 0, 0, 0>
16061
+ extension _Texture<T,__Shape2D, 0, 0, 0, $(kCoreModule_ResourceAccessFeedback ), 0, 0, 0>
16062
16062
{
16063
16063
// With Clamp
16064
16064
@@ -16138,7 +16138,7 @@ extension _Texture<T,__Shape2D, 0, 0, 0, $(kStdlibResourceAccessFeedback), 0, 0,
16138
16138
};
16139
16139
16140
16140
__generic<T:__BuiltinSamplerFeedbackType>
16141
- extension _Texture<T,__Shape2D, 1, 0, 0, $(kStdlibResourceAccessFeedback ), 0, 0, 0>
16141
+ extension _Texture<T,__Shape2D, 1, 0, 0, $(kCoreModule_ResourceAccessFeedback ), 0, 0, 0>
16142
16142
{
16143
16143
// With Clamp
16144
16144
@@ -19254,7 +19254,7 @@ ${
19254
19254
// We introduce a few convenience type aliases here,
19255
19255
// which both keep our declarations simpler and easier
19256
19256
// to understand, but which might *also* be useful to
19257
- // users of the stdlib , so that they can write things
19257
+ // users of the standard module , so that they can write things
19258
19258
// like `Texture2D.Footprint`, and also have auto-complete
19259
19259
// help them find such members.
19260
19260
//
@@ -19273,7 +19273,7 @@ ${
19273
19273
// parameter to the query operation(s). We define
19274
19274
// the GLSL functions here as intrinsics, so that
19275
19275
// we can refer to them later in the definitions
19276
- // of our stdlib operaitons.
19276
+ // of our standard module operaitons; not just in glsl module .
19277
19277
//
19278
19278
// Note: despite the GLSL extension defining the `granularity`
19279
19279
// member of the query result as having type `uint`, the
@@ -19606,7 +19606,7 @@ for(auto levelChoice : kLevelChoices)
19606
19606
19607
19607
${
19608
19608
// We now define the portable operations that will be officially
19609
- // supported by the standard library . For each operation, we
19609
+ // supported by the standard module . For each operation, we
19610
19610
// need to provide both a version that maps to the GLSL extension,
19611
19611
// and a version that uses the NVAPI functions.
19612
19612
//
@@ -19850,7 +19850,7 @@ ${{{{
19850
19850
19851
19851
//<T, Shape: __ITextureShape, let isArray:int, let isMS:int, let sampleCount:int, let access:int, let isShadow:int, let isCombined:int, let format:int>
19852
19852
__generic<Shape:__ITextureShape1D2D3D, let format : int>
19853
- extension _Texture<float, Shape, 0, 0, 0, $(kStdlibResourceAccessReadWrite ), 0, 0, format>
19853
+ extension _Texture<float, Shape, 0, 0, 0, $(kCoreModule_ResourceAccessReadWrite ), 0, 0, format>
19854
19854
{
19855
19855
[__requiresNVAPI]
19856
19856
[ForceInline]
0 commit comments